dtl/CMakeLists.txt
2024-06-03 09:59:35 -05:00

25 lines
508 B
CMake

cmake_minimum_required(VERSION 3.20)
cmake_policy(SET CMP0048 NEW)
project(
dtl
VERSION 1.21
)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/include)
option(DTL_ENABLE_TESTING "Enable DTL unit tests" OFF)
if(DTL_ENABLE_TESTING)
include(test/CMakeLists.txt)
endif()
option(DTL_ENABLE_EXAMPLES "Enable DTL examples" OFF)
if(DTL_ENABLE_EXAMPLES)
include(examples/CMakeLists.txt)
endif()