-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
49 lines (38 loc) · 1.26 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
cmake_minimum_required(VERSION 3.6)
# Project name (!= executable name!)
project(acu-impl)
# CMake and compiler flags
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra -pedantic")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-parameter")
# Add ./cmake to CMAKE_MODULE_PATH to 'source' it
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
# Link against librocksdb
#
# Find the library
find_package(Rocks REQUIRED)
# Add the headers to include directories
include_directories(BEFORE ${RDB_INCLUDE_DIR})
# Add the library to the LINK_LIBS
set(LINK_LIBS ${LINK_LIBS} ${RDB_LIBRARY})
# Link against libbroker
#
# Find the library
find_package(Broker REQUIRED)
# Add the headers to include directories
include_directories(BEFORE ${BROKER_INCLUDE_DIR})
# Add the library to the LINK_LIBS
set(LINK_LIBS ${LINK_LIBS} ${BROKER_LIBRARY})
# Link against libacu
#
# Find the library
find_package(Acu REQUIRED)
# Add the headers to include directories
include_directories(BEFORE ${ACU_INCLUDE_DIR})
# Add the library to the LINK_LIBS
set(LINK_LIBS ${LINK_LIBS} ${ACU_LIBRARY})
# Add our include directory
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
# Add sub directories
add_subdirectory(src)
add_subdirectory(test)