Remove automatic test subdir inclusion.
Too complex and might cause problems some day.
This commit is contained in:
parent
ce4f4bea06
commit
cf777ec09c
@ -27,20 +27,6 @@ add_library(test_gtest_common INTERFACE)
|
|||||||
target_compile_definitions(test_gtest_common INTERFACE TEST_DATA_DIR="${TEST_DATA_DIR}")
|
target_compile_definitions(test_gtest_common INTERFACE TEST_DATA_DIR="${TEST_DATA_DIR}")
|
||||||
target_link_libraries(test_gtest_common INTERFACE GTest::GTest GTest::Main)
|
target_link_libraries(test_gtest_common INTERFACE GTest::GTest GTest::Main)
|
||||||
|
|
||||||
macro(subdirlist result curdir)
|
add_subdirectory(libnest2d)
|
||||||
file(GLOB children RELATIVE ${curdir} ${curdir}/*)
|
add_subdirectory(timeutils)
|
||||||
set(dirlist "")
|
|
||||||
foreach(child ${children})
|
|
||||||
if(IS_DIRECTORY ${curdir}/${child} AND NOT ${child} STREQUAL "catch2" )
|
|
||||||
list(APPEND dirlist ${child})
|
|
||||||
endif()
|
|
||||||
endforeach()
|
|
||||||
set(${result} ${dirlist})
|
|
||||||
endmacro()
|
|
||||||
|
|
||||||
subdirlist(SUBDIRS ${CMAKE_CURRENT_LIST_DIR})
|
|
||||||
|
|
||||||
foreach(subdir ${SUBDIRS})
|
|
||||||
add_subdirectory(${subdir})
|
|
||||||
endforeach()
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user