-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (26 loc) · 987 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
cmake_minimum_required(VERSION 3.15)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
project(dark-diagnostics CXX)
include(cmake/StandardProjectSettings.cmake)
include_directories(include)
add_library(project_options INTERFACE)
add_library(project_warnings INTERFACE)
include(cmake/CompilerWarnings.cmake)
set_project_warnings(project_warnings)
include(cmake/Sanitizers.cmake)
enable_sanitizers(project_options)
include(cmake/StaticAnalyzers.cmake)
option(ENABLE_PCH "Enable Precompiled Headers" OFF)
if(ENABLE_PCH)
target_precompile_headers(project_options INTERFACE <vector> <string> <map> <utility>)
endif(ENABLE_PCH)
add_library(diagnostics_core INTERFACE)
target_include_directories(diagnostics_core INTERFACE include)
option(ENABLE_TESTING "Enable Test Builds" ON)
if(ENABLE_TESTING)
enable_testing()
message("Building Tests. Be sure to check out test/ directory")
add_subdirectory(test)
endif(ENABLE_TESTING)
add_subdirectory(examples)