aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt17
1 files changed, 5 insertions, 12 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index a55b7a06523..9aaca9622ed 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -8,14 +8,13 @@
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-CollectSourceFiles(
- ${CMAKE_CURRENT_SOURCE_DIR}
- TEST_SOURCES
-)
-
GroupSources(${CMAKE_CURRENT_SOURCE_DIR})
-add_executable(tests ${TEST_SOURCES})
+add_executable(tests)
+
+CollectAndAddSourceFiles(
+ tests
+ ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(tests
PRIVATE
@@ -23,13 +22,7 @@ target_link_libraries(tests
game
Catch2::Catch2)
-CollectIncludeDirectories(
- ${CMAKE_CURRENT_SOURCE_DIR}
- TEST_INCLUDES)
-
target_include_directories(tests
- PUBLIC
- ${TEST_INCLUDES}
PRIVATE
${CMAKE_CURRENT_BINARY_DIR})