-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
25 lines (21 loc) · 700 Bytes
/
CMakeLists.txt
File metadata and controls
25 lines (21 loc) · 700 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
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
project(jk LANGUAGES CXX)
enable_testing()
include(CTest)
find_package(Catch2 3 REQUIRED)
find_package(Boost REQUIRED)
add_library(jk
include/jk/action_handler.hpp
include/jk/actions.hpp
include/jk/config.hpp
include/jk/generator.hpp
include/jk/parser.hpp
include/jk/print.hpp
include/jk/value.hpp
src/parser.cpp)
target_compile_features(jk PUBLIC cxx_std_20)
target_include_directories(jk PUBLIC include ${Boost_INCLUDE_DIRS})
add_executable(execute tests/execute.cpp)
target_link_libraries(execute PRIVATE jk fmt)
add_executable(parse_test tests/parse.cpp)
target_link_libraries(parse_test PRIVATE jk Catch2::Catch2WithMain fmt)