Commit f16e536d 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 029d148b
......@@ -20,9 +20,9 @@ add_library(milou SHARED ${lib_SRCS})
set_target_properties(milou PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR} )
target_link_libraries (milou
Qt5::Qml
Qt5::Quick
Qt5::Widgets # for QAction...
Qt::Qml
Qt::Quick
Qt::Widgets # for QAction...
KF5::ItemModels
KF5::Service
KF5::Plasma
......
......@@ -6,7 +6,7 @@ set (plugin_SRCS
add_library (milouqmlplugin SHARED ${plugin_SRCS})
target_link_libraries (milouqmlplugin
Qt5::Qml
Qt::Qml
milou
)
......
......@@ -7,9 +7,9 @@ add_executable(modeltest test.cpp)
ecm_mark_as_test(modeltest)
target_link_libraries(modeltest
Qt5::Core
Qt5::Test
Qt5::Gui
Qt::Core
Qt::Test
Qt::Gui
milou
)
......@@ -17,9 +17,9 @@ add_executable(widgettest widgettest.cpp)
ecm_mark_as_test(widgettest)
target_link_libraries(widgettest
Qt5::Core
Qt5::Gui
Qt5::Widgets
Qt::Core
Qt::Gui
Qt::Widgets
milou
)
......@@ -27,8 +27,8 @@ add_executable(previewtest previewtest.cpp)
ecm_mark_as_test(previewtest)
target_link_libraries(previewtest
Qt5::Core
Qt5::Gui
Qt5::Widgets
Qt::Core
Qt::Gui
Qt::Widgets
milou
)
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