Add switch for KF5 (QT6) and Mod Cmake

if we want to test QET on QT6, KF5 must be removed from the code,
this switch is for that,

this is for testing only
This commit is contained in:
Simon De Backer
2020-12-16 23:06:08 +01:00
parent 13db08ad56
commit cb37c1c2fe
15 changed files with 135 additions and 116 deletions

View File

@@ -88,15 +88,8 @@ target_link_libraries(
PUBLIC
Catch2::Catch2
PRIVATE
KF5::WidgetsAddons
KF5::CoreAddons
Qt::Gui
Qt::Xml
Qt::Svg
Qt::Sql
Qt::Network
Qt::Widgets
Qt::Concurrent)
${KF5_PRIVATE_LIBRARIES}
${QET_PRIVATE_LIBRARIES})
if (DEFINED ENV{CATCH_INCLUDE_DIR})
set(CATCH_INCLUDE_DIR $ENV{CATCH_INCLUDE_DIR})

View File

@@ -85,13 +85,6 @@ target_link_libraries(
PUBLIC
gmock gmock_main
PRIVATE
KF5::WidgetsAddons
KF5::CoreAddons
Qt::Gui
Qt::Xml
Qt::Svg
Qt::Sql
Qt::Network
Qt::Widgets
Qt::Concurrent)
${KF5_PRIVATE_LIBRARIES}
${QET_PRIVATE_LIBRARIES})

View File

@@ -79,19 +79,11 @@ add_executable(
tst_My_test.cpp
main.cpp
)
target_link_libraries(
${PROJECT_NAME}
PUBLIC
gtest gtest_main
PRIVATE
KF5::WidgetsAddons
KF5::CoreAddons
Qt::Gui
Qt::Xml
Qt::Svg
Qt::Sql
Qt::Network
Qt::Widgets
Qt::Concurrent)
${KF5_PRIVATE_LIBRARIES}
${QET_PRIVATE_LIBRARIES})

View File

@@ -74,13 +74,6 @@ target_link_libraries(
${PROJECT_NAME}
PRIVATE
Qt::Test
KF5::CoreAddons
KF5::WidgetsAddons
Qt::Gui
Qt::Xml
Qt::Svg
Qt::Sql
Qt::Network
Qt::Widgets
Qt::Concurrent)
${KF5_PRIVATE_LIBRARIES}
${QET_PRIVATE_LIBRARIES})