diff options
author | Friedrich W. H. Kossebau <kossebau@kde.org> | 2021-01-17 22:08:41 +0100 |
---|---|---|
committer | Friedrich W. H. Kossebau <kossebau@kde.org> | 2021-01-17 22:08:41 +0100 |
commit | 1704f7ab86253169615f19a9b10e2a832191b905 (patch) | |
tree | 6106ffc9e1a14ab4a9947134179d63a5e2bea0d1 /tests/CMakeLists.txt | |
parent | 50c0f8b05bd623af927d29dc01e5c7e7fb04dd34 (diff) | |
download | extra-cmake-modules-1704f7ab86253169615f19a9b10e2a832191b905.tar.gz extra-cmake-modules-1704f7ab86253169615f19a9b10e2a832191b905.tar.bz2 |
ECMQtDeclareLoggingCategory: create .categories files in build, not configure
Ensures that the files
* are re-created by build rule when accidentally deleted in the build dir
* are not getting new timestamps on every cmake run, even when content
has not changed
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 1901ca16..fff7d988 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -150,7 +150,14 @@ if (TARGET Qt5::qmake) KDEInstallDirsTest.relative_or_absolute dummy) endif () if (Qt5Core_FOUND) - add_test_macro(ECMQtDeclareLoggingCategoryTest testmain) + set(ECMQtDeclareLoggingCategoryTest_EXTRA_OPTIONS + --build-target all + --build-options + "-DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_CURRENT_BINARY_DIR}/ECMQtDeclareLoggingCategoryTest/InstallDirectory" + ) + add_test_macro(ECMQtDeclareLoggingCategoryTest + ${CMAKE_COMMAND} -P "${CMAKE_CURRENT_BINARY_DIR}/ECMQtDeclareLoggingCategoryTest/check.cmake" + ) endif() add_test_macro(FindModules dummy) |