-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
60 lines (43 loc) · 1.5 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
cmake_minimum_required(VERSION 3.15)
include(cmake/prelude.cmake)
project(
lispy
VERSION 0.2.0
DESCRIPTION "Simple Tests of C++ standard containers"
LANGUAGES CXX
)
include(cmake/project-is-top-level.cmake)
include(cmake/variables.cmake)
# ---- Dependencies ----
# find_package(Threads)
find_package(fmt CONFIG REQUIRED)
find_package(argparse CONFIG REQUIRED)
find_package(range-v3 CONFIG REQUIRED)
find_path(RAPIDCSV_INCLUDE_DIRS "rapidcsv.h")
# ---- Declare executable ----
add_executable(cxx-container-testing src/main.cpp)
add_executable(cxx-container-testing::exe ALIAS cxx-container-testing)
target_compile_features(cxx-container-testing PRIVATE cxx_std_20)
target_include_directories(
cxx-container-testing ${warning_guard}
PUBLIC
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>"
)
target_link_libraries(cxx-container-testing PRIVATE fmt::fmt)
target_link_libraries(cxx-container-testing PRIVATE range-v3::meta range-v3::concepts range-v3::range-v3)
target_link_libraries(cxx-container-testing PRIVATE argparse::argparse)
target_include_directories(cxx-container-testing PRIVATE ${RAPIDCSV_INCLUDE_DIRS})
# ---- Install rules ----
if(NOT CMAKE_SKIP_INSTALL_RULES)
include(cmake/install-rules.cmake)
endif()
# ---- Developer mode ----
if(NOT cxx-container-testing_DEVELOPER_MODE)
return()
elseif(NOT PROJECT_IS_TOP_LEVEL)
message(
AUTHOR_WARNING
"Developer mode is intended for developers of the Lispy interpreter"
)
endif()
include(cmake/dev-mode.cmake)