-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
30 lines (24 loc) · 845 Bytes
/
CMakeLists.txt
File metadata and controls
30 lines (24 loc) · 845 Bytes
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
cmake_minimum_required (VERSION 3.21 FATAL_ERROR)
set(CMAKE_VERBOSE_MAKEFILE ON)
include(cmake/modules.cmake)
set(CMAKE_MESSAGE_LOG_LEVEL VERBOSE)
include(cmake/vcpkg_settings.cmake)
include(cmake/platform.cmake)
find_package(VCPKG)
if(NOT CMakeJSON_FOUND)
find_package(CMakeJSON REQUIRED)
endif()
include(cmake/GeneralOptions.cmake)
include(cmake/toolchains.cmake)
include(cmake/Watcher.cmake)
include(cmake/DefaultProjectSettings.cmake)
include(cmake/CompilerOptions.cmake)
include(cmake/StaticAnalyzers.cmake)
include(cmake/Sanitizers.cmake)
# Some GitHub runners have not enough resources to compile this project multithreaded.
if(StoPhys_LIMITED_RESOURCE)
set_property(GLOBAL APPEND PROPERTY JOB_POOLS one_job=1)
set(CMAKE_JOB_POOL_COMPILE one_job)
set(CMAKE_JOB_POOL_LINK one_job)
endif()
project("StoPhysics.json")