diff --git a/CMakeLists.txt b/CMakeLists.txt index a54c3b5..9b05d0b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,15 +6,10 @@ if(PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR) message(FATAL_ERROR "In-source builds not allowed. Please make a new directory (called a build directory) and run CMake from there.") endif() -include(cmake/CPM.cmake) include(cmake/tools.cmake) -CPMAddPackage( - NAME PackageProject.cmake - GITHUB_REPOSITORY TheLartians/PackageProject.cmake - VERSION 1.3 -) - - add_subdirectory(io) add_subdirectory(test) + +set_target_properties(io_test PROPERTIES EXCLUDE_FROM_ALL YES) +set_target_properties(test_framework PROPERTIES EXCLUDE_FROM_ALL YES) diff --git a/io/CMakeLists.txt b/io/CMakeLists.txt index d2c10bb..89554af 100644 --- a/io/CMakeLists.txt +++ b/io/CMakeLists.txt @@ -5,6 +5,14 @@ project(io VERSION 0.1 ) +include(../cmake/CPM.cmake) + +CPMAddPackage( + NAME PackageProject.cmake + GITHUB_REPOSITORY TheLartians/PackageProject.cmake + VERSION 1.3 +) + file(GLOB_RECURSE headers CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/include/*.h") file(GLOB_RECURSE sources CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp)