-
Notifications
You must be signed in to change notification settings - Fork 9
/
CMakeLists.txt
37 lines (28 loc) · 1.02 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
cmake_minimum_required(VERSION 3.18)
project(omilatencylab)
enable_testing()
# Set compiler flags
set(CMAKE_CXX_STANDARD 17)
# Set directories
set(OMI_DIR ${CMAKE_CURRENT_SOURCE_DIR}/omi)
set(EXAMPLE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/example)
set(TESTS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/tests)
# Find boost
find_package(Boost 1.67 REQUIRED COMPONENTS program_options filesystem system)
set (Boost_LIBRARIES Boost::program_options Boost::filesystem Boost::system)
# Include directories
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
# Build example projects
add_subdirectory(example/analysis)
add_subdirectory(example/comparison)
add_subdirectory(example/email)
add_subdirectory(example/matching)
add_subdirectory(example/race)
add_subdirectory(example/report)
# Tests
add_subdirectory(tests)
# Target-specific settings
foreach(target IN ITEMS analysis comparison email matching race report tests)
target_include_directories(${target} PRIVATE ${Boost_INCLUDE_DIR})
target_link_libraries(${target} ${Boost_LIBRARIES})
endforeach()