-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
33 lines (26 loc) · 992 Bytes
/
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
#specify minimum version required
cmake_minimum_required(VERSION 2.8.12.2)
#project name
project(kvstore)
#set where the executables need to be put
set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/bin)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
#add subdirectories
add_subdirectory(lib/transaction)
add_subdirectory(lib/storage)
add_subdirectory(lib/network)
add_subdirectory(src)
#include directories
include_directories(lib/transaction src)
#executable to be created
add_executable(server_client_test test/server_client_test.c)
add_executable(transaction_test test/transaction_test.c)
add_executable(participating_node test/participating_node.c)
add_executable(throughput_test test/throughput_test.c)
#linking
target_link_libraries(server_client_test kvstore)
target_link_libraries(transaction_test transaction)
target_link_libraries(participating_node kvstore)
target_link_libraries(throughput_test kvstore)
#add linker flags
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_CXX_FLAGS} -pthread")