diff --git a/CMakeLists.txt b/CMakeLists.txt index 1cee122e..cb13b768 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,6 +83,8 @@ add_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_USE_QSTRINGBUILDER ) +qt_policy(SET QTP0001 NEW) +qt_policy(SET QTP0004 NEW) ki18n_install(po) install(PROGRAMS org.kde.kasts.desktop DESTINATION ${KDE_INSTALL_APPDIR}) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 35397d8b..a73d4283 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -76,7 +76,6 @@ qt_add_resources(kasts "icons" ../icons/kasts-tray-dark.svg ) -qt_policy(SET QTP0001 NEW) qt_add_qml_module(kasts URI org.kde.kasts QML_FILES qml/Main.qml diff --git a/src/kmediasession/CMakeLists.txt b/src/kmediasession/CMakeLists.txt index c6ad7272..90a76931 100644 --- a/src/kmediasession/CMakeLists.txt +++ b/src/kmediasession/CMakeLists.txt @@ -39,7 +39,6 @@ add_library(KMediaSession mpris2/mpris2.cpp ) -qt_policy(SET QTP0001 NEW) qt_add_qml_module(KMediaSession URI org.kde.kmediasession OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/org/kde/kmediasession ) diff --git a/src/kmediasession/example-app/CMakeLists.txt b/src/kmediasession/example-app/CMakeLists.txt index b87baac4..41946b99 100644 --- a/src/kmediasession/example-app/CMakeLists.txt +++ b/src/kmediasession/example-app/CMakeLists.txt @@ -12,7 +12,6 @@ endif() add_executable(kmediasession-example main.cpp) -qt_policy(SET QTP0001 NEW) qt_add_qml_module(kmediasession-example URI org.kde.kmediasession-example QML_FILES qml/Main.qml