-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
33 lines (25 loc) · 919 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
cmake_minimum_required(VERSION 3.24)
list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
project(
CppInterfaceTechniques
VERSION 1.0.0
DESCRIPTION "A review of C++ Interface Techniques"
HOMEPAGE_URL "https://github.com/globberwops/cpp-interface-techniques"
LANGUAGES CXX)
include(FetchDeps)
include(CompilerWarnings)
option(CPP_INTERFACE_TECHNIQUES_BUILD_BENCHMARKS "Build benchmarks" ${PROJECT_IS_TOP_LEVEL})
option(CPP_INTERFACE_TECHNIQUES_BUILD_DOCS "Build documentation" ${PROJECT_IS_TOP_LEVEL})
option(CPP_INTERFACE_TECHNIQUES_BUILD_TESTS "Build tests" ${PROJECT_IS_TOP_LEVEL})
add_subdirectory(src)
add_subdirectory(third_party)
if(CPP_INTERFACE_TECHNIQUES_BUILD_BENCHMARKS)
add_subdirectory(benchmarks)
endif()
if(CPP_INTERFACE_TECHNIQUES_BUILD_DOCS)
add_subdirectory(docs)
endif()
if(CPP_INTERFACE_TECHNIQUES_BUILD_TESTS)
enable_testing()
add_subdirectory(tests)
endif()