-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
117 lines (109 loc) · 3.45 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# to build on mac you should have added a path to your qt directory in CMAKE_PREFIX_PATH environment variable
# for ex.: export CMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH:/Users/testnet/Qt/5.9.2/clang_64/lib/cmake"
cmake_minimum_required(VERSION 3.0.2)
project(zelerius-gui)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin")
find_package(Qt5Core REQUIRED)
find_package(Qt5Gui REQUIRED)
find_package(Qt5Network REQUIRED)
find_package(Qt5Widgets REQUIRED)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
set(CONFIG "${CONFIG} c++14 strict_c++")
if(APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.13")
endif()
set(SOURCES
src/main.cpp
src/mainwindow.cpp
src/signalhandler.cpp
src/overviewframe.cpp
src/aboutdialog.cpp
src/JsonRpc/JsonRpcClient.cpp
src/JsonRpc/JsonRpcNotification.cpp
src/JsonRpc/JsonRpcObject.cpp
src/JsonRpc/JsonRpcObjectFactory.cpp
src/JsonRpc/JsonRpcRequest.cpp
src/JsonRpc/JsonRpcResponse.cpp
src/application.cpp
src/logger.cpp
src/okbutton.cpp
src/statusbar.cpp
src/windoweditemmodel.cpp
src/walletmodel.cpp
src/sendframe.cpp
src/transferframe.cpp
src/resizablescrollarea.cpp
src/common.cpp
src/connectionoptionsframe.cpp
src/settings.cpp
src/Miner/Miner.cpp
src/Miner/StratumClient.cpp
src/Miner/Worker.cpp
src/MinerDelegate.cpp
src/MinerModel.cpp
src/MiningFrame.cpp
src/MiningManager.cpp
src/connectselectiondialog.cpp
src/walletd.cpp
src/rpcapi.cpp
src/progressbar.cpp
src/addressbookframe.cpp
src/addressbookmodel.cpp
src/addressbooksortedmodel.cpp
src/newaddressdialog.cpp
src/addressbookdelegate.cpp
src/addressbookmanager.cpp
src/balanceoverviewframe.cpp
src/miningoverviewframe.cpp
src/crashdialog.cpp
src/changepassworddialog.cpp
src/sendconfirmationdialog.cpp
src/addressbookdialog.cpp
src/popup.cpp
src/logframe.cpp
src/askpassworddialog.cpp
src/importkeydialog.cpp
src/questiondialog.cpp
src/PoolTreeView.cpp
src/createproofdialog.cpp
src/checkproofdialog.cpp
src/walletdparamsdialog.cpp
src/exportkeydialog.cpp
src/filedownloader.cpp
src/MiningFrame.ui
src/askpassworddialog.ui
src/connectionoptionsframe.ui
src/exportkeydialog.ui
src/miningoverviewframe.ui
src/questiondialog.ui
src/aboutdialog.ui
src/balanceoverviewframe.ui
src/connectselectiondialog.ui
src/importkeydialog.ui
src/newaddressdialog.ui
src/sendframe.ui
src/addressbookdialog.ui
src/changepassworddialog.ui
src/crashdialog.ui
src/logframe.ui
src/optionsdialog.ui
src/transferframe.ui
src/addressbookframe.ui
src/checkproofdialog.ui
src/createproofdialog.ui
src/mainwindow.ui
src/overviewframe.ui
src/walletdparamsdialog.ui
src/zelerius-gui.pro
)
include_directories(${CMAKE_BINARY_DIR} src )
include_directories(../Zelerius-Network/include)
include_directories(../Zelerius-Network/src)
link_directories(../Zelerius-Network/libs)
add_executable(zelerius-gui ${SOURCES} src/resources.qrc)
target_link_libraries(zelerius-gui zelerius-crypto)
qt5_use_modules(zelerius-gui Core Network Gui Widgets)