From 1704f7ab86253169615f19a9b10e2a832191b905 Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Sun, 17 Jan 2021 22:08:41 +0100 Subject: 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 --- tests/CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests/CMakeLists.txt') 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) -- cgit v1.2.1