-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
47 lines (32 loc) · 984 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
43
44
45
46
47
# Default Cmake
cmake_minimum_required(VERSION 3.0.0)
# Only set the cxx_standard if it is not set by someone else
if (NOT DEFINED CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 20)
endif()
# strongly encouraged to enable this globally to avoid conflicts between
# -Wpedantic being enabled and -std=c++20 and -std=gnu++20 for example
# when compiling with PCH enabled
set(CMAKE_CXX_EXTENSIONS OFF)
# Project Name
project(HelloWorld VERSION 0.1.0)
include(cmake/PreventInSourceBuilds.cmake)
include(cmake/ProjectOptions.cmake)
# add dependencies
include(cmake/CPM.cmake)
dektop_app_setup_options()
dektop_app_global_options()
include(cmake/Dependencies.cmake)
dektop_app_setup_dependencies()
dektop_app_local_options()
add_subdirectory(src)
#################### Tests ####################
# Don't even look at tests if we're not top level
if(NOT PROJECT_IS_TOP_LEVEL)
return()
endif()
# Adding the tests:
include(CTest)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()