-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
34 lines (25 loc) · 827 Bytes
/
CMakeLists.txt
File metadata and controls
34 lines (25 loc) · 827 Bytes
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
cmake_minimum_required(VERSION 3.16)
project(cond3_rule_tree LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# cond3 library
add_library(cond3
src/value.cpp
src/evaluator.cpp
src/condition_filter.cpp
src/rule.cpp
src/rule_parser.cpp
src/rule_loader.cpp
)
target_include_directories(cond3 PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
)
target_compile_features(cond3 PUBLIC cxx_std_17)
# cond3_demo executable
add_executable(cond3_demo
src/main.cpp
)
target_link_libraries(cond3_demo PRIVATE cond3)
# Copy conditions.json into the build directory (CMAKE_BINARY_DIR)
configure_file(${CMAKE_SOURCE_DIR}/conditions.json ${CMAKE_BINARY_DIR}/conditions.json COPYONLY)
configure_file(${CMAKE_SOURCE_DIR}/rules.json ${CMAKE_BINARY_DIR}/rules.json COPYONLY)