cmake: Cleanup in CMake subdirectory

parent 7c765dd9
../contrib/catch2/Catch.cmake
\ No newline at end of file
../contrib/catch2/CatchAddTests.cmake
\ No newline at end of file
../../contrib/catch2/Catch.cmake
\ No newline at end of file
../../contrib/catch2/CatchAddTests.cmake
\ No newline at end of file
../../contrib/catch2/ParseAndAddCatchTests.cmake
\ No newline at end of file
../contrib/catch2/ParseAndAddCatchTests.cmake
\ No newline at end of file
......@@ -17,6 +17,6 @@ else()
endif()
configure_file(
${PROJECT_SOURCE_DIR}/CMake/Modules/version.hpp.in
${PROJECT_SOURCE_DIR}/CMake/version.hpp.in
${PROJECT_BINARY_DIR}/version.hpp
)
......@@ -4,11 +4,7 @@ project(algorithms_library_toolkit
VERSION 0.0.0
LANGUAGES CXX)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake/Modules)
set(CONFIGURE_HEADERS_SRC_DIR ${CMAKE_SOURCE_DIR}/CMake/headers)
set(CONFIGURE_HEADERS_DST_DIR ${CMAKE_BINARY_DIR})
include_directories(${CONFIGURE_HEADERS_DST_DIR})
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake)
set(CMAKE_COLOR_MAKEFILE ON)
if (NOT UNIX)
......@@ -38,14 +34,16 @@ include(CompilerFlags)
include(Install)
include(Version)
include_directories(${PROJECT_BINARY_DIR})
# testing
include(CTest)
if(BUILD_TESTING)
include(Catch)
add_subdirectory(contrib/catch2)
configure_file(
${CMAKE_SOURCE_DIR}/CMake/headers/configure_tests.hpp.in
${CMAKE_BINARY_DIR}/configure_tests.hpp
${PROJECT_SOURCE_DIR}/CMake/configure_tests.hpp.in
${PROJECT_BINARY_DIR}/configure_tests.hpp
)
alt_module(alib2integrationtest)
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment