-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
43 lines (36 loc) · 1.1 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
cmake_minimum_required(VERSION 3.16)
project(ChainSimQServe LANGUAGES CXX)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(QT 6.8 NAMES Qt6 REQUIRED COMPONENTS Core)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS
Core
Network
HttpServer
)
add_executable(ChainSimQServe
main.cpp
ChainSimBuilder.h ChainSimBuilder.cpp
ChainSim.h ChainSim.cpp
ChainSimServer.h ChainSimServer.cpp
purchase_policies/PurchasePolicy.h
purchase_policies/PurchaseROP.h purchase_policies/PurchaseROP.cpp
purchase_policies/PurchaseTPOP.h purchase_policies/PurchaseTPOP.cpp
purchase_policies/PurchaseEOQ.h purchase_policies/PurchaseEOQ.cpp
utils/ChainLogger.hpp
utils/CLI.hpp
utils/DemandSampler.hpp
)
target_link_libraries(ChainSimQServe PRIVATE
Qt${QT_VERSION_MAJOR}::Core
Qt${QT_VERSION_MAJOR}::Network
Qt${QT_VERSION_MAJOR}::HttpServer
)
include(GNUInstallDirs)
install(TARGETS ChainSimQServe
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)