forked from caffeinetv/CaffQL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
43 lines (33 loc) · 751 Bytes
/
CMakeLists.txt
File metadata and controls
43 lines (33 loc) · 751 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
33
34
35
36
37
38
39
40
41
42
43
cmake_minimum_required(VERSION 3.13.1)
project(CaffQL LANGUAGES CXX)
SET(CMAKE_CXX_STANDARD 17)
SET(CMAKE_CXX_EXTENSIONS OFF)
add_library(caffql
STATIC
src/Json.hpp
src/BoxedOptional.hpp
src/CodeGeneration.hpp
src/CodeGeneration.cpp
)
add_executable(caffql-cli
src/main.cpp
)
target_link_libraries(caffql-cli PRIVATE caffql)
target_include_directories(caffql
PRIVATE
third_party/nlohmann_json/single_include
)
target_include_directories(caffql-cli
PRIVATE
third_party/nlohmann_json/single_include
third_party/cxxopts/include
)
set_target_properties(caffql-cli
PROPERTIES
OUTPUT_NAME caffql
)
option(BUILD_TESTING "Enable tests" ON)
if(BUILD_TESTING)
enable_testing()
add_subdirectory(tests)
endif()