-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
57 lines (46 loc) · 1.41 KB
/
CMakeLists.txt
File metadata and controls
57 lines (46 loc) · 1.41 KB
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
# SPDX-License-Identifier: BSL-1.0
# Copyright Eddie Nolan and Jonathan Wakely 2023 - 2025.
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.txt or copy at
# https://www.boost.org/LICENSE_1_0.txt)
cmake_minimum_required(VERSION 3.27)
project(
beman.utf_view
DESCRIPTION "C++29 UTF Transcoding Views"
LANGUAGES CXX
VERSION 0.0.1
)
# [CMAKE.SKIP_TESTS]
option(
BEMAN_UTF_VIEW_BUILD_TESTS
"Enable building tests and test infrastructure. Default: ${PROJECT_IS_TOP_LEVEL}. Values: { ON, OFF }."
${PROJECT_IS_TOP_LEVEL}
)
# [CMAKE.SKIP_EXAMPLES]
option(
BEMAN_UTF_VIEW_BUILD_EXAMPLES
"Enable building examples. Default: ${PROJECT_IS_TOP_LEVEL}. Values: { ON, OFF }."
${PROJECT_IS_TOP_LEVEL}
)
option(
BEMAN_UTF_VIEW_BUILD_PAPER
"Enable building paper. Default: OFF. Values: { ON, OFF }."
OFF
)
option(
BEMAN_UTF_VIEW_INSTALL_CONFIG_FILE_PACKAGE
"Enable creating and installing a CMake config-file package. Default: ${PROJECT_IS_TOP_LEVEL}. Values: { ON, OFF }."
${PROJECT_IS_TOP_LEVEL}
)
find_package(beman.transform_view REQUIRED)
add_subdirectory(src/beman/utf_view)
if(BEMAN_UTF_VIEW_BUILD_TESTS)
enable_testing()
add_subdirectory(tests/beman/utf_view)
endif()
if(BEMAN_UTF_VIEW_BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
if(BEMAN_UTF_VIEW_BUILD_PAPER)
add_subdirectory(papers)
endif()