diff options
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) |