-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
42 lines (31 loc) · 929 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
cmake_minimum_required(VERSION 3.24)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
project(cucumber-cpp-runner LANGUAGES C CXX VERSION 1.0.0) # x-release-please-version
include(ccr_test_helpers)
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
set(CCR_STANDALONE On)
endif()
if (CCR_STANDALONE)
set(CCR_DEFAULTOPT On)
else()
set(CCR_DEFAULTOPT Off)
endif()
if (CCR_STANDALONE)
set(CCR_EXCLUDE_FROM_ALL "")
else()
set(CCR_EXCLUDE_FROM_ALL "EXCLUDE_FROM_ALL")
endif()
option(CCR_BUILD_TESTS "Enable building the tests" ${CCR_DEFAULTOPT})
if (CCR_BUILD_TESTS)
ccr_enable_testing()
endif()
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED On)
set(CMAKE_CXX_EXTENSIONS Off)
set_directory_properties(PROPERTY USE_FOLDERS ON)
include(FetchContent)
include(GNUInstallDirs)
include(CTest)
include(GoogleTest)
add_subdirectory(external)
add_subdirectory(cucumber_cpp)