-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
29 lines (21 loc) · 1.03 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
cmake_minimum_required(VERSION 3.20)
# Setting the VERSION on root project() will populate CMAKE_PROJECT_VERSION
# see: https://cmake.org/cmake/help/v3.13/variable/CMAKE_PROJECT_VERSION.html
project(Entity VERSION "${BUILD_VERSION}")
# Setup cmake helpers in 'cmake' submodule
include ("cmake/include.cmake")
cmc_include_conan_configuration()
# Enable the grouping target in folders, when available in IDE.
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# see: https://cmake.org/cmake/help/latest/module/CTest.html
# To be included in the top CMakeLists.txt, creates BUILD_TESTING option (ON by default)
# Invokes enable_testing() to enable add_test(), unless BUILD_TESTING is OFF.
# note: Conan can set BUILD_TESTING to OFF through tools.build:skip_test configuration.
include(CTest)
# Install the top-level package config, allowing to find all sub-components
include(cmc-install)
cmc_install_root_component_config(${PROJECT_NAME})
cmc_register_source_package(${PROJECT_NAME})
include(cmc-cpp)
cmc_cpp_define_sanitizer_enum()
add_subdirectory(src)