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