generated from AMWA-TV/info-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
27 lines (19 loc) · 894 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
cmake_minimum_required(VERSION 3.16)
project(ossrf LANGUAGES CXX VERSION 0.1.0)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cpp/config/cmake")
include(StandardProjectSettings)
include(PreventInSourceBuilds)
enable_testing()
# Link this 'library' to set the c++ standard / compile-time options requested
add_library(project_options INTERFACE)
target_compile_features(project_options INTERFACE cxx_std_20)
add_library(bisect::project_options ALIAS project_options)
# Link this 'library' to use the warnings specified in CompilerWarnings.cmake
add_library(project_warnings INTERFACE)
add_library(bisect::project_warnings ALIAS project_warnings)
# Standard compiler warnings
include(CompilerWarnings)
set_project_warnings(project_warnings FALSE)
add_library(project_warnings_c INTERFACE)
add_library(bisect::project_warnings_c ALIAS project_warnings_c)
add_subdirectory(cpp)