-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
37 lines (31 loc) · 799 Bytes
/
CMakeLists.txt
File metadata and controls
37 lines (31 loc) · 799 Bytes
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
cmake_minimum_required(VERSION 3.14)
project(DistCache)
set(CMAKE_CXX_STANDARD 17)
# -----------------------
# Core Application
# -----------------------
file(GLOB_RECURSE CORE_SOURCES
src/storage/*.cpp
src/network/*.cpp
src/cluster/*.cpp
src/monitoring/*.cpp
)
add_executable(distcache ${CORE_SOURCES} src/main.cpp)
# Include directories
include_directories(
src/storage
src/network
src/cluster
src/monitoring
)
# MessagePack (if needed)
find_package(PkgConfig REQUIRED)
pkg_check_modules(MSGPACK REQUIRED msgpack)
include_directories(${MSGPACK_INCLUDE_DIRS})
target_link_libraries(distcache ${MSGPACK_LIBRARIES})
# -----------------------
# Add Tests & Benchmarks
# -----------------------
enable_testing()
add_subdirectory(tests)
add_subdirectory(benchmark)