From 0d715d879dd159d0dff33a1e216e94c2acee9cf0 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 11 Jul 2022 13:55:46 +0800 Subject: [PATCH] Specify test files manually So that cmake will detect file changes automatically and therefore we don't need to re-invoke cmake manually. --- test/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index de3a36511..2f9a2cf16 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -9,7 +9,9 @@ add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure) include_directories("../src") -file(GLOB testFiles "${CMAKE_CURRENT_SOURCE_DIR}/test*.cpp") +set(testFiles + testutilsgzip.cpp +) foreach(testFile ${testFiles}) get_filename_component(testFilename "${testFile}" NAME_WLE)