-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
51 lines (42 loc) · 1.06 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
# CMakeLists.txt for Raft
#
# © 2018 by Richard Walters
cmake_minimum_required(VERSION 3.8)
set(This Raft)
option(RAFT_EXTRA_DIAGNOSTICS "Report extra diagnostics (significant performance hit)" OFF)
set(Headers
include/Raft/ClusterConfiguration.hpp
include/Raft/Command.hpp
include/Raft/ILog.hpp
include/Raft/IPersistentState.hpp
include/Raft/IServer.hpp
include/Raft/LogEntry.hpp
include/Raft/Server.hpp
src/InstanceInfo.hpp
src/Message.hpp
src/ServerImpl.hpp
src/Utilities.hpp
)
set(Sources
src/LogEntry.cpp
src/Message.cpp
src/Server.cpp
src/ServerImpl.cpp
src/Utilities.cpp
)
add_library(${This} STATIC ${Sources} ${Headers})
set_target_properties(${This} PROPERTIES
FOLDER Libraries
)
if(RAFT_EXTRA_DIAGNOSTICS)
target_compile_definitions(${This} PRIVATE EXTRA_DIAGNOSTICS)
endif(RAFT_EXTRA_DIAGNOSTICS)
target_include_directories(${This} PUBLIC include)
target_link_libraries(${This} PUBLIC
AsyncData
Json
Serialization
SystemAbstractions
Timekeeping
)
add_subdirectory(test)