Commit 28a689d4 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Use versionless Qt cmake target

This makes it easier to build against both Qt5 and Qt6

GIT_SILENT
parent 87872a7c
......@@ -8,8 +8,8 @@ include_directories(../src)
ecm_add_test(iconmodeltest.cpp ../src/iconmodel.cpp ../src/sortfiltermodel.cpp
TEST_NAME iconmodeltest
LINK_LIBRARIES
Qt5::Gui
Qt5::Test
Qt::Gui
Qt::Test
KF5::ConfigCore
KF5::IconThemes
KF5::Package
......
......@@ -10,9 +10,9 @@ add_executable(cuttlefish ${cuttlefish_SRCS})
target_compile_definitions(cuttlefish PRIVATE -DPROJECT_VERSION="${PROJECT_VERSION}")
target_link_libraries(cuttlefish
Qt5::Quick
Qt5::Gui
Qt5::Widgets # for QDirModel
Qt::Quick
Qt::Gui
Qt::Widgets # for QDirModel
KF5::Plasma
KF5::KIOWidgets
KF5::Declarative
......@@ -20,7 +20,7 @@ target_link_libraries(cuttlefish
KF5::I18n
KF5::IconThemes
KF5::Package
Qt5::DBus
Qt::DBus
)
install(TARGETS cuttlefish ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
......
......@@ -12,10 +12,10 @@ target_compile_definitions(lookandfeelexplorer PRIVATE -DPROJECT_VERSION="${PROJ
#find_package(ActiveApp REQUIRED)
target_link_libraries(lookandfeelexplorer
Qt5::Gui
Qt5::Quick
Qt5::Widgets
Qt5::DBus
Qt::Gui
Qt::Quick
Qt::Widgets
Qt::DBus
KF5::Archive
KF5::Declarative
KF5::I18n
......
......@@ -7,8 +7,8 @@ add_executable(plasmoidviewer ${plasmoidviewer_SRCS})
target_compile_definitions(plasmoidviewer PRIVATE -DPROJECT_VERSION="${PROJECT_VERSION}")
target_link_libraries(plasmoidviewer
Qt5::Quick
Qt5::DBus
Qt::Quick
Qt::DBus
KF5::DBusAddons
KF5::Plasma
KF5::PlasmaQuick
......
......@@ -13,10 +13,10 @@ target_compile_definitions(plasmathemeexplorer PRIVATE -DPROJECT_VERSION="${PROJ
#find_package(ActiveApp REQUIRED)
target_link_libraries(plasmathemeexplorer
Qt5::Gui
Qt5::Quick
Qt5::Widgets
Qt5::Xml
Qt::Gui
Qt::Quick
Qt::Widgets
Qt::Xml
KF5::Archive
KF5::Declarative
KF5::I18n
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment