-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
43 lines (32 loc) · 1.13 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
cmake_minimum_required(VERSION 3.24)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
project("C++ Coroutines" LANGUAGES CXX)
if(NOT CMAKE_CXX_STANDARD)
message("setting CMAKE_CXX_STANDARD to C++23")
set(CMAKE_CXX_STANDARD 23)
endif()
# testing settings
include(cmake/Testing.cmake)
# adjust or override some CMake defaults
include(cmake/OverrideCMakeDefaults.cmake)
# default compiler options and warnings
include(cmake/DefaultCompilerOptions.cmake)
include(cmake/DefaultCompilerWarnings.cmake)
# static analyzers
include(cmake/StaticAnalyzers.cmake)
# sanitizers
include(cmake/Sanitizers.cmake)
include(FetchContent)
FetchContent_Declare(cppcoro GIT_REPOSITORY https://github.com/andreasbuhr/cppcoro.git GIT_TAG main)
FetchContent_MakeAvailable(cppcoro)
find_package(PkgConfig REQUIRED)
pkg_check_modules(libcoro REQUIRED IMPORTED_TARGET libcoro)
find_package(nanobench CONFIG REQUIRED)
find_package(concurrencpp CONFIG REQUIRED)
add_subdirectory(src/shared)
add_subdirectory(src/reference)
add_subdirectory(src/manual)
add_subdirectory(src/concurrencpp)
add_subdirectory(src/cppcoro)
add_subdirectory(src/libcoro)
add_subdirectory(src/std)