ADD: switched to new cmake configuration
This commit is contained in:
parent
69c22b1a3a
commit
630e511489
@ -1,28 +1,7 @@
|
||||
cmake_minimum_required (VERSION 3.1 FATAL_ERROR)
|
||||
project (libtree++ VERSION 0.1.0 LANGUAGES CXX)
|
||||
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules)
|
||||
include(GNUInstallDirs)
|
||||
enable_testing()
|
||||
|
||||
#cmake options for the project
|
||||
option(DOXYGEN "Also build the doxygen documentation" OFF)
|
||||
|
||||
|
||||
# set the required c++ standard
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
include(CTest)
|
||||
find_package(Git)
|
||||
|
||||
|
||||
INCLUDE(ProcessDOXYGEN)
|
||||
INCLUDE(ProcessGIT)
|
||||
INCLUDE(add_my_test)
|
||||
|
||||
IF(CMAKE_BUILD_TYPE MATCHES DEBUG)
|
||||
set(DEBUG 1)
|
||||
ENDIF(CMAKE_BUILD_TYPE MATCHES DEBUG)
|
||||
include(defaultOptions)
|
||||
|
||||
configure_file(${PROJECT_SOURCE_DIR}/src/config.hpp.in ${PROJECT_SOURCE_DIR}/src/config.hpp @ONLY)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user