-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
42 lines (33 loc) · 1.15 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
cmake_minimum_required(VERSION 3.26)
project(LimitOrderBook)
set(CMAKE_CXX_STANDARD 17)
set(ASIO_INCLUDE_DIR /Users/rezatabrizi/dev/sdk/asio/include)
# Locate the PostgreSQL library
find_package(PostgreSQL REQUIRED)
include_directories(${PostgreSQL_INCLUDE_DIRS} ${ASIO_INCLUDE_DIR})
# Manually set the include and library paths for libpqxx
include_directories(/opt/homebrew/include)
link_directories(/opt/homebrew/lib)
# Including the Net Library
include_directories(../Net/include)
# Using ASIO without Boost
add_compile_definitions(ASIO_STANDALONE)
add_executable(LimitOrderBook ExchangeDriver.cpp
headers/Order.h
headers/Limit.h
src/Limit.cpp
headers/LOB.h
src/LOB.cpp
headers/OrderBookManager.h
src/OrderBookManager.cpp
headers/CentralMessageSystem.h
headers/MessagingQueue.h
headers/Message.h
src/CentralMessageSystem.cpp
headers/Execution.h
headers/DBConnection.h
headers/ExchangeServer.h
)
add_executable(Client MarketParticipantSample.cpp)
# Link the PostgreSQL and libpqxx libraries
target_link_libraries(LimitOrderBook ${PostgreSQL_LIBRARIES} pqxx)