move to cmake
This commit is contained in:
24
CMakeLists.txt
Normal file
24
CMakeLists.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user