Remove submodule, use the system Sprout
This commit is contained in:
parent
fa5eed2948
commit
7fb56e65ff
5 changed files with 14 additions and 15 deletions
|
@ -5,6 +5,8 @@ list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules)
|
|||
include(shared_git_project)
|
||||
include(CTest)
|
||||
|
||||
find_package(Sprout REQUIRED)
|
||||
|
||||
set(DUCKHANDY_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
if (BUILD_TESTING)
|
||||
set(BUILD_TESTS CACHE BOOL ON)
|
||||
|
@ -30,15 +32,16 @@ target_compile_features(${PROJECT_NAME}
|
|||
|
||||
target_include_directories(${PROJECT_NAME}
|
||||
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/lib/sprout
|
||||
)
|
||||
target_include_directories(${PROJECT_NAME} SYSTEM
|
||||
INTERFACE ${SPROUT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
target_compile_definitions(${PROJECT_NAME}
|
||||
INTERFACE SPROUT_NO_CXX11_NUMERIC_LIMITS
|
||||
INTERFACE SPROUT_USE_TEMPLATE_ALIASES
|
||||
)
|
||||
|
||||
add_subdirectory(lib/sprout)
|
||||
|
||||
if (BUILD_TESTING)
|
||||
add_subdirectory(test/unit)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue