summaryrefslogtreecommitdiff
path: root/test/libapt
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2017-01-17 14:33:02 +0100
committerJulian Andres Klode <jak@debian.org>2017-01-17 14:33:02 +0100
commitb59a8c6e29015c4d19c4b39a63b328af7d87d1ee (patch)
treebb437e51b05bf67409e70d96034ae970f891880b /test/libapt
parent994515e689dcc5f963f5fed58284831750a5da03 (diff)
CMake: Document that the globs are expanded during CMake
This will avoid people from thinking that they have to do nothing when they change the set of files. Gbp-Dch: ignore
Diffstat (limited to 'test/libapt')
-rw-r--r--test/libapt/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/libapt/CMakeLists.txt b/test/libapt/CMakeLists.txt
index f7cd5b2f6..86c0b28b5 100644
--- a/test/libapt/CMakeLists.txt
+++ b/test/libapt/CMakeLists.txt
@@ -22,6 +22,9 @@ if(NOT GTEST_FOUND AND EXISTS ${GTEST_ROOT})
endif()
if(GTEST_FOUND)
+ # Definition of the C++ files used to build the test binary - note that this
+ # is expanded at CMake time, so you have to rerun cmake if you add or remove
+ # a file (you can just run cmake . in the build directory)
file(GLOB files gtest_runner.cc *-helpers.cc *_test.cc)
add_executable(libapt_test ${files})
target_include_directories(libapt_test PRIVATE ${GTEST_INCLUDE_DIRS})