refactor version
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
cmake_minimum_required(VERSION 3.20)
|
||||
cmake_policy(SET CMP0048 NEW)
|
||||
|
||||
set(DTL_VERSION 2.01)
|
||||
|
||||
project(
|
||||
dtl
|
||||
VERSION 1.21
|
||||
VERSION ${DTL_VERSION}
|
||||
)
|
||||
|
||||
include(CheckIncludeFile)
|
||||
@@ -18,6 +20,12 @@ if(HAVE_UNISTD_H)
|
||||
add_definitions(-DHAVE_UNISTD_H)
|
||||
endif()
|
||||
|
||||
configure_file(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/dtl/variables.hpp.in
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/dtl/variables.hpp
|
||||
@ONLY
|
||||
)
|
||||
|
||||
include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||
|
||||
option(DTL_ENABLE_TESTING "Enable DTL unit tests" OFF)
|
||||
|
||||
Reference in New Issue
Block a user