From 58797a1289b2719b731dbb6a81e064fd4786db03 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Wed, 1 Sep 2021 23:44:24 -0600 Subject: Tests: Remove all file(GLOB) from CMakeLists in Tests Using a file(GLOB) to find all the test files in a directory is an easy hack to get things started, but has some drawbacks. Namely, if you add a test, it won't be found again without re-running CMake. `ninja` seems to do this automatically, but it would be nice to one day stop seeing it rechecking our globbed directories. --- Tests/LibELF/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Tests/LibELF/CMakeLists.txt') diff --git a/Tests/LibELF/CMakeLists.txt b/Tests/LibELF/CMakeLists.txt index c4bbaf4fa5..ab5a9f200a 100644 --- a/Tests/LibELF/CMakeLists.txt +++ b/Tests/LibELF/CMakeLists.txt @@ -1,5 +1,7 @@ -file(GLOB CMD_SOURCES CONFIGURE_DEPENDS "*.cpp") +set(TEST_SOURCES + test-elf.cpp +) -foreach(CMD_SRC ${CMD_SOURCES}) - serenity_test(${CMD_SRC} LibELF) +foreach(source IN LISTS TEST_SOURCES) + serenity_test("${source}" LibELF) endforeach() -- cgit v1.2.3