-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
40 lines (30 loc) · 1.01 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
# To enable timing:
# cmake -DTIMING=ON
# To override cgroup base directory:
# cmake -DCGROUPBASEDIR:STRING=/sys/fs/cgroup/unified
cmake_minimum_required (VERSION 3.0.0)
project (konro)
list (APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/")
option(TIMING "Enable low level timing" OFF)
if (NOT DEFINED CGROUPBASEDIR)
set(CGROUPBASEDIR "/sys/fs/cgroup" CACHE STRING "The cgroup base directory")
endif()
add_definitions(-DCGROUPBASEDIR="${CGROUPBASEDIR}")
if (TIMING)
# enable low level timing of (some parts of the) code
add_definitions(-DTIMING)
endif()
add_compile_options(-Wall -Wextra -Wpedantic)
add_subdirectory (common)
add_subdirectory (lib)
add_subdirectory (rm)
add_subdirectory (konrolib)
add_subdirectory (testplatformcontrol)
add_subdirectory (testthreadsafequeue)
add_subdirectory (testsensors)
add_subdirectory (testhwloc)
add_subdirectory (testkonrolib)
add_subdirectory (testtimer)
add_subdirectory (peopledetect)
add_subdirectory (testnamespaces)
add_subdirectory (testrmcommon)