diff options
author | Robert Tari <robert@tari.in> | 2021-12-07 11:58:59 +0100 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-12-07 11:58:59 +0100 |
commit | af5a57545d9aa5493790798b77364f3c923eb337 (patch) | |
tree | 7b272a1a1442c68990539a165f9f86c519a08bd2 /tests/client | |
parent | 5b84c106dd8af8f0be14fd8a8efd3b3dd9ef2c25 (diff) | |
download | qmenumodel-af5a57545d9aa5493790798b77364f3c923eb337.tar.gz qmenumodel-af5a57545d9aa5493790798b77364f3c923eb337.tar.bz2 qmenumodel-af5a57545d9aa5493790798b77364f3c923eb337.zip |
Fix qt5_use_modules warning
Diffstat (limited to 'tests/client')
-rw-r--r-- | tests/client/CMakeLists.txt | 10 |
1 files changed, 8 insertions, 2 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}
|