-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
93 lines (73 loc) · 2.51 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
cmake_minimum_required(VERSION 3.0)
project(vcash)
# directory for wxVcashGUI sources
set(WXVCASHGUI_SRC_PATH ${CMAKE_SOURCE_DIR})
# directory for vcash sources
set(VCASH_SRC_PATH ${WXVCASHGUI_SRC_PATH}/..)
# subpath for libaries compiled by bjam in build-linux.sh
set(VCASH_LIB_SUBPATH bin/gcc-${CMAKE_C_COMPILER_VERSION}/release/link-static/threading-multi)
# directory for wxWidgets includes
set(WX_INCLUDES /usr/local/include/wx-3.1 /usr/local/lib/wx/include/gtk3-unicode-static-3.1)
include_directories(
${WXVCASHGUI_SRC_PATH}/include
${WXVCASHGUI_SRC_PATH}/deps/libqrencode
${VCASH_SRC_PATH}/coin/include
${VCASH_SRC_PATH}/deps/boost
${VCASH_SRC_PATH}/deps/openssl/include
${VCASH_SRC_PATH}/deps/db/include
${WX_INCLUDES})
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -std=c++11 -D_UNICODE -D_FILE_OFFSET_BITS=64 -D__WXGTK__")
set(SOURCE_FILES
AccountPage.cpp
AddressesPage.cpp
BlockExplorer.cpp
ConsolePage.cpp
ContextMenu.cpp
Controller.cpp
EntryDialog.cpp
HistoryPage.cpp
MainFrame.cpp
MainPanel.cpp
MiningPage.cpp
QRDialog.cpp
Resources.cpp
ShowInfoDialog.cpp
StatisticsPage.cpp
StatusBarImage.cpp
StatusBarWallet.cpp
OnPairsEvent.cpp
StatusBar.cpp
TaskBarIcon.cpp
ToolsFrame.cpp
ToolsPanel.cpp
TransferPage.cpp
Utils.cpp
VcashApp.cpp
View.cpp
WalletActions.cpp
wxStack.cpp)
add_executable(vcash ${SOURCE_FILES})
LINK_DIRECTORIES(/usr/local/lib /usr/lib/x86_64-linux-gnu)
TARGET_LINK_LIBRARIES(vcash
${VCASH_SRC_PATH}/coin/${VCASH_LIB_SUBPATH}/libcoin.a
${VCASH_SRC_PATH}/database/${VCASH_LIB_SUBPATH}/libdatabase.a
${VCASH_SRC_PATH}/deps/boost/stage/lib/libboost_system.a
${VCASH_SRC_PATH}/deps/openssl/lib/libssl.a
${VCASH_SRC_PATH}/deps/openssl/lib/libcrypto.a
${VCASH_SRC_PATH}/deps/db/lib/libdb.a
${VCASH_SRC_PATH}/deps/db/lib/libdb_cxx.a
${WXVCASHGUI_SRC_PATH}/deps/libqrencode/libqrencode.a
Xxf86vm
wx_gtk3u_richtext-3.1
wx_gtk3u_adv-3.1
wx_baseu_xml-3.1
wx_gtk3u_html-3.1
wx_baseu_net-3.1
wx_gtk3u_core-3.1 wx_baseu-3.1 wx_gtk3u_adv-3.1 wxtiff-3.1 wxjpeg-3.1
pthread
gtk-3 gdk-3 gdk_pixbuf-2.0
X11
SM
cairo pango-1.0 pangocairo-1.0
gobject-2.0 glib-2.0 png z dl m
expat)