-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
107 lines (103 loc) · 2.59 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(platform_sources plat/default/priority.cpp plat/posix/perms.cpp
plat/darwin/thread_role.cpp plat/default/debugging.cpp)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
set(platform_sources
plat/windows/priority.cpp plat/windows/perms.cpp
plat/windows/registry.cpp plat/windows/thread_role.cpp
plat/default/debugging.cpp)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(platform_sources plat/linux/priority.cpp plat/posix/perms.cpp
plat/linux/thread_role.cpp plat/linux/debugging.cpp)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
set(platform_sources plat/default/priority.cpp plat/posix/perms.cpp
plat/freebsd/thread_role.cpp plat/default/debugging.cpp)
else()
error("Unknown platform: ${CMAKE_SYSTEM_NAME}")
endif()
add_library(
vxldollar_lib
${platform_sources}
asio.hpp
asio.cpp
blockbuilders.hpp
blockbuilders.cpp
blocks.hpp
blocks.cpp
cli.hpp
cli.cpp
config.hpp
config.cpp
configbase.hpp
diagnosticsconfig.hpp
diagnosticsconfig.cpp
epoch.hpp
epoch.cpp
errors.hpp
errors.cpp
ipc.hpp
ipc.cpp
ipc_client.hpp
ipc_client.cpp
json_error_response.hpp
jsonconfig.hpp
jsonconfig.cpp
lmdbconfig.hpp
lmdbconfig.cpp
locks.hpp
locks.cpp
logger_mt.hpp
memory.hpp
memory.cpp
numbers.hpp
numbers.cpp
optional_ptr.hpp
rate_limiting.hpp
rate_limiting.cpp
rep_weights.hpp
rep_weights.cpp
rocksdbconfig.hpp
rocksdbconfig.cpp
rpc_handler_interface.hpp
rpcconfig.hpp
rpcconfig.cpp
signal_manager.hpp
signal_manager.cpp
stats.hpp
stats.cpp
stream.hpp
threading.hpp
threading.cpp
timer.hpp
timer.cpp
tlsconfig.hpp
tlsconfig.cpp
tomlconfig.hpp
tomlconfig.cpp
utility.hpp
utility.cpp
walletconfig.hpp
walletconfig.cpp
work.hpp
work.cpp)
target_link_libraries(
vxldollar_lib
ed25519
crypto_lib
blake2
ipc_flatbuffers_lib
${CRYPTOPP_LIBRARY}
${CMAKE_DL_LIBS}
Boost::boost
Boost::program_options)
if(VXLDOLLAR_STACKTRACE_BACKTRACE)
target_link_libraries(vxldollar_lib backtrace)
endif()
target_compile_definitions(
vxldollar_lib
PRIVATE -DMAJOR_VERSION_STRING=${CPACK_PACKAGE_VERSION_MAJOR}
-DMINOR_VERSION_STRING=${CPACK_PACKAGE_VERSION_MINOR}
-DPATCH_VERSION_STRING=${CPACK_PACKAGE_VERSION_PATCH}
-DPRE_RELEASE_VERSION_STRING=${CPACK_PACKAGE_VERSION_PRE_RELEASE}
-DCI=${CI_TEST}
PUBLIC -DACTIVE_NETWORK=${ACTIVE_NETWORK})