-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathCMakeLists.txt
26 lines (20 loc) · 882 Bytes
/
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
cmake_minimum_required(VERSION 3.1.2)
project(tradingsystem)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_EXTENSIONS OFF)
# If on windows, uncomment and set the path to the boost library
# set(CMAKE_PREFIX_PATH "D:/boost_1_82_0")
# Find the Boost library
find_package(Boost REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
# six servers/processes: input (price, orderbook, trade, inquiry) and output (streaming, execution)
add_executable(server main.cpp)
target_link_libraries(server ${Boost_LIBRARIES})
# four main clients: price, orderbook, trade, and inquiry
add_executable(price InputPriceConnector.cpp)
add_executable(market InputMarketConnector.cpp)
add_executable(trade InputTradeConnector.cpp)
add_executable(inquiry InputInquiryConnector.cpp)