-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
68 lines (60 loc) · 1.56 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
cmake_minimum_required(VERSION 3.5)
project(ftxGateway LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
#set(CMAKE_BUILD_TYPE Release)
#set(LIB_AERON /home/kirill/aeron)
set(LIB_AERON $ENV{HOME}/aeron)
set(SPDLOG_DIR ${CMAKE_SOURCE_DIR})
find_package(Boost 1.78.0 REQUIRED COMPONENTS json)
find_package(Threads REQUIRED)
find_package(OpenSSL REQUIRED)
find_package(fmt)
include_directories(${LIB_AERON}/aeron-client/src/main/cpp)
# for fmt library
include_directories(/usr/local/include)
# for spdlog
include_directories(${SPDLOG_DIR}/src)
add_executable(
ftxGateway
main.cpp
gateway.cpp
gateway.hpp
src/AERON/Publisher.cpp
src/AERON/Publisher.hpp
src/AERON/Subscriber.cpp
src/AERON/Subscriber.hpp
src/config/config.cpp
src/config/config.hpp
src/utils/Encoding.cpp
src/utils/Encoding.hpp
src/utils/simdjson.cpp
src/utils/simdjson.hpp
src/utils/json.hpp
src/utils/HTTP.cpp
src/utils/HTTP.hpp
src/utils/ASyncHTTP.cpp
src/utils/ASyncHTTP.hpp
src/utils/decl_header.hpp
src/utils/Time.hpp
src/utils/error.hpp
src/utils/mylogger.cpp
src/utils/mylogger.hpp
src/REST/rest_client.cpp
src/REST/rest_client.hpp
src/REST/async_rest_client.cpp
src/REST/async_rest_client.hpp
src/WS/WS.cpp
src/WS/WS.hpp
src/WS/ws_client.cpp
src/WS/ws_client.hpp
src/spdlog/spdlog.h
)
target_link_libraries(
ftxGateway
Threads::Threads
OpenSSL::SSL
Boost::json
fmt::fmt
${LIB_AERON}/cppbuild/Release/lib/libaeron_client.a
)