summaryrefslogtreecommitdiff
path: root/cmake/BTTests.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/BTTests.cmake')
-rw-r--r--cmake/BTTests.cmake8
1 files changed, 1 insertions, 7 deletions
diff --git a/cmake/BTTests.cmake b/cmake/BTTests.cmake
index 5b44962..0184097 100644
--- a/cmake/BTTests.cmake
+++ b/cmake/BTTests.cmake
@@ -1,11 +1,6 @@
ENABLE_TESTING(true)
-QT5_ADD_RESOURCES(test_RESOURCE_SOURCES
- ${bibletime_SOURCE_DIR}/src/mobile/btm.qrc
- ${bibletime_SOURCE_DIR}/i18n/messages/test_translate.qrc
-)
-
SET(test_OTHER_SOURCES
${bibletime_SOURCE_DIR}/src/frontend/messagedialog.cpp
)
@@ -20,10 +15,9 @@ FUNCTION(test_a_class testDir testClass )
${testDir}/test_${testClass}.cpp
${test_OTHER_SOURCES}
${test_${testClass}_MOC_SRC}
- ${test_RESOURCE_SOURCES}
)
SET_TARGET_PROPERTIES("test_${testClass}" PROPERTIES COMPILE_FLAGS ${Sword_CFLAGS_OTHER} -std=c++11 )
- QT5_USE_MODULES(test_${testClass} Widgets Xml Network Test)
+ TARGET_LINK_LIBRARIES(test_${testClass} Qt5::Widgets Qt5::Xml Qt5::Network Qt5::Test)
TARGET_LINK_LIBRARIES(test_${testClass}
bibletime_common
${Sword_LDFLAGS}