-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
27 lines (24 loc) · 762 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
cmake_minimum_required(VERSION 3.9)
project(zcontrol)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake" ${CMAKE_MODULE_PATH})
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
add_compile_options(-D_FILE_OFFSET_BITS=64)
option(WITH_COMMANDER "Include Commander Library" ON)
option(WITH_ZCFS "Include ZCFS Executable" ON)
option(WITH_WORKER "Include Worker Library" ON)
option(WITH_ZCWORKERD "Include ZCWorker Daemon Executable" ON)
add_subdirectory(base)
add_subdirectory(common)
if (WITH_COMMANDER)
add_subdirectory(commander)
endif()
if (WITH_ZCFS)
add_subdirectory(zcfs)
endif()
if (WITH_WORKER)
add_subdirectory(worker)
endif()
if (WITH_ZCWORKERD)
add_subdirectory(zcworkerd)
endif()