-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
43 lines (33 loc) · 1.05 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
# SPDX-License-Identifier: BSL-1.0
# Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
# 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 CXX)
include(FetchContent)
option(
UTF_VIEW_BUILD_TESTING
"Enable building tests and test infrastructure. Default: ON. Values: { ON, OFF }."
${PROJECT_IS_TOP_LEVEL}
)
option(
BEMAN_UTF_VIEW_BUILD_PAPER
"Enable building paper. Default: OFF. Values: { ON, OFF }."
OFF
)
FetchContent_Declare(
beman.iterator_interface
GIT_REPOSITORY https://github.com/bemanproject/iterator_interface.git
GIT_TAG 94adc3ea613384dc9da64c9de1a7d9a21395ede7
EXCLUDE_FROM_ALL
)
FetchContent_MakeAvailable(beman.iterator_interface)
add_subdirectory(src/beman/utf_view)
if (BEMAN_UTF_VIEW_BUILD_PAPER)
add_subdirectory(paper)
endif()
if (UTF_VIEW_BUILD_TESTING)
enable_testing()
add_subdirectory(tests/beman/utf_view)
endif()