aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/client/CMakeLists.txt10
-rw-r--r--tests/script/CMakeLists.txt2
2 files changed, 9 insertions, 3 deletions
diff --git a/tests/client/CMakeLists.txt b/tests/client/CMakeLists.txt
index 9021585..3d1dc9a 100644
--- a/tests/client/CMakeLists.txt
+++ b/tests/client/CMakeLists.txt
@@ -1,11 +1,16 @@
macro(declare_test testname)
add_executable(${testname} ${testname}.cpp)
- qt5_use_modules(${testname} Core DBus Widgets Test Qml Quick)
target_link_libraries(${testname}
qmenumodel
dbusmenuscript
${GLIB_LDFLAGS}
${GIO_LDFLAGS}
+ Qt5::Core
+ Qt5::DBus
+ Qt5::Widgets
+ Qt5::Test
+ Qt5::Qml
+ Qt5::Quick
)
if(TEST_XML_OUTPUT)
@@ -28,11 +33,12 @@ endmacro(declare_test testname)
macro(declare_simple_test testname)
add_executable(${testname} ${testname}.cpp)
- qt5_use_modules(${testname} Core Test)
target_link_libraries(${testname}
qmenumodel
${GLIB_LDFLAGS}
${GIO_LDFLAGS}
+ Qt5::Core
+ Qt5::Test
)
add_test(${testname}
diff --git a/tests/script/CMakeLists.txt b/tests/script/CMakeLists.txt
index afa073b..fc0db8a 100644
--- a/tests/script/CMakeLists.txt
+++ b/tests/script/CMakeLists.txt
@@ -4,5 +4,5 @@ add_library(dbusmenuscript STATIC dbusmenuscript.cpp)
set_target_properties(dbusmenuscript PROPERTIES COMPILE_FLAGS -fPIC)
-qt5_use_modules(dbusmenuscript Core DBus Test)
+target_link_libraries(dbusmenuscript Qt5::Core Qt5::DBus Qt5::Test)