forked from bcndev/bytecoin-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
91 lines (83 loc) · 2.62 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
# 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(stefche-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.11")
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
)
include_directories(${CMAKE_BINARY_DIR} src )
include_directories(../stefche/include)
include_directories(../stefche/src)
link_directories(../stefche/libs)
add_executable(stefche-gui ${SOURCES} src/resources.qrc)
target_link_libraries(stefche-gui stefche-crypto)
qt5_use_modules(stefche-gui Core Network Gui Widgets)