-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
43 lines (36 loc) · 987 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright Rein Halbersma 2010-2023.
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
cmake_minimum_required(VERSION 3.16)
project(
dctl
HOMEPAGE_URL https://github.com/rhalbersma/${PROJECT_NAME}
LANGUAGES CXX
)
add_library(
${PROJECT_NAME} INTERFACE
)
find_package(Boost REQUIRED)
target_link_libraries(
${PROJECT_NAME} INTERFACE
Boost::boost
)
set(project_include_dir
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>
)
target_include_directories(
${PROJECT_NAME} INTERFACE
${project_include_dir}
${PROJECT_SOURCE_DIR}/../bit_set/include
${PROJECT_SOURCE_DIR}/../tabula/include
${PROJECT_SOURCE_DIR}/../xstd/include
)
target_compile_features(
${PROJECT_NAME} INTERFACE
cxx_std_23
)
include(CTest)
add_subdirectory(test)
add_subdirectory(example)