2016-07-14 14:23:36 +00:00
|
|
|
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
|
|
|
|
project(duckhandy)
|
|
|
|
list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules)
|
|
|
|
|
|
|
|
include(shared_git_project)
|
2017-04-12 12:54:55 +00:00
|
|
|
include(CTest)
|
|
|
|
|
|
|
|
set(DUCKHANDY_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
|
2016-07-14 14:23:36 +00:00
|
|
|
|
|
|
|
add_library(${PROJECT_NAME} INTERFACE)
|
|
|
|
|
|
|
|
target_compile_features(${PROJECT_NAME}
|
|
|
|
INTERFACE cxx_nullptr
|
|
|
|
INTERFACE cxx_range_for
|
|
|
|
INTERFACE cxx_lambdas
|
|
|
|
INTERFACE cxx_decltype_auto
|
|
|
|
INTERFACE cxx_defaulted_functions
|
|
|
|
INTERFACE cxx_deleted_functions
|
|
|
|
INTERFACE cxx_auto_type
|
|
|
|
INTERFACE cxx_decltype_incomplete_return_types
|
|
|
|
INTERFACE cxx_noexcept
|
|
|
|
INTERFACE cxx_rvalue_references
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
|
|
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
|
|
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/lib/sprout
|
|
|
|
)
|
2017-04-12 12:54:55 +00:00
|
|
|
if (BUILD_TESTING)
|
|
|
|
add_subdirectory(test/unit)
|
|
|
|
endif()
|