Commit f8266036 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add more unity support

parent 69fafacb
Pipeline #51314 canceled with stage
......@@ -11,7 +11,9 @@ ecm_qt_declare_logging_category(messageviewer_expandurlplugin_SRCS HEADER expand
kcoreaddons_add_plugin(messageviewer_expandurlplugin JSON messageviewer_expandurlplugin.json SOURCES
${messageviewer_expandurlplugin_SRCS} INSTALL_NAMESPACE messageviewer/viewercommonplugin)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(messageviewer_expandurlplugin PROPERTIES UNITY_BUILD ON)
endif()
target_link_libraries(messageviewer_expandurlplugin
KF5::MessageViewer KF5::XmlGui KF5::Libkdepim KF5::I18n
)
......
......@@ -5,6 +5,9 @@ set(messageviewer_translatorplugin_SRCS
kcoreaddons_add_plugin(messageviewer_translatorplugin JSON messageviewer_translatorplugin.json SOURCES
${messageviewer_translatorplugin_SRCS} INSTALL_NAMESPACE messageviewer/viewercommonplugin)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(messageviewer_translatorplugin PROPERTIES UNITY_BUILD ON)
endif()
target_link_libraries(messageviewer_translatorplugin
KF5::MessageViewer KF5::XmlGui KF5::PimTextEdit KF5::I18n
......
......@@ -16,6 +16,9 @@ ecm_qt_declare_logging_category(messageviewer_createeventplugin_SRCS HEADER crea
kcoreaddons_add_plugin(messageviewer_createeventplugin JSON messageviewer_createeventplugin.json SOURCES
${messageviewer_createeventplugin_SRCS} INSTALL_NAMESPACE messageviewer/viewerplugin)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(messageviewer_createeventplugin PROPERTIES UNITY_BUILD ON)
endif()
target_link_libraries(messageviewer_createeventplugin
KF5::MessageViewer KF5::XmlGui KF5::CalendarCore KF5::IncidenceEditor KF5::AkonadiWidgets KF5::CalendarSupport
......
......@@ -13,6 +13,9 @@ ecm_qt_declare_logging_category(messageviewer_createnoteplugin_SRCS HEADER creat
kcoreaddons_add_plugin(messageviewer_createnoteplugin JSON messageviewer_createnoteplugin.json SOURCES
${messageviewer_createnoteplugin_SRCS} INSTALL_NAMESPACE messageviewer/viewerplugin)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(messageviewer_createnoteplugin PROPERTIES UNITY_BUILD ON)
endif()
target_link_libraries(messageviewer_createnoteplugin
......
......@@ -13,6 +13,9 @@ ecm_qt_declare_logging_category(messageviewer_createtodoplugin_SRCS HEADER creat
kcoreaddons_add_plugin(messageviewer_createtodoplugin JSON messageviewer_createtodoplugin.json SOURCES
${messageviewer_createtodoplugin_SRCS} INSTALL_NAMESPACE messageviewer/viewerplugin)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(messageviewer_createtodoplugin PROPERTIES UNITY_BUILD ON)
endif()
target_link_libraries(messageviewer_createtodoplugin
......
......@@ -20,6 +20,9 @@ ecm_qt_declare_logging_category(messageviewer_externalscriptplugin_SRCS HEADER e
kcoreaddons_add_plugin(messageviewer_externalscriptplugin JSON messageviewer_externalscriptplugin.json
SOURCES ${messageviewer_externalscriptplugin_SRCS} INSTALL_NAMESPACE messageviewer/viewerplugin)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(messageviewer_externalscriptplugin PROPERTIES UNITY_BUILD ON)
endif()
target_link_libraries(messageviewer_externalscriptplugin
KF5::MessageViewer KF5::XmlGui KF5::I18n KF5::PimCommon KF5::KIOWidgets
......
......@@ -23,6 +23,9 @@ ecm_qt_declare_logging_category(loggingcategory_SRCS
set(pimeventsplugins_full_SRCS ${pimeventsplugin_SRCS} ${loggingcategory_SRCS})
kcoreaddons_add_plugin(pimevents JSON pimeventsplugin.json SOURCES
${pimeventsplugins_full_SRCS} INSTALL_NAMESPACE plasmacalendarplugins)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(pimevents PROPERTIES UNITY_BUILD ON)
endif()
target_link_libraries(pimevents
Qt5::Core
......@@ -53,7 +56,9 @@ target_link_libraries(pimcalendarsplugin
KF5::CalendarCore
KF5::ConfigCore
)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(pimcalendarsplugin PROPERTIES UNITY_BUILD ON)
endif()
install(TARGETS pimcalendarsplugin
DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/PimCalendars
)
......
......@@ -17,6 +17,9 @@ kconfig_add_kcfg_files(webengineviewer_webengineurlinterceptor_donottrack_SRCS
kcoreaddons_add_plugin(webengineviewer_donottrackplugin JSON messageviewer_donottrackurlinterceptor.json SOURCES
${webengineviewer_webengineurlinterceptor_donottrack_SRCS} INSTALL_NAMESPACE webengineviewer/urlinterceptor)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(webengineviewer_donottrackplugin PROPERTIES UNITY_BUILD ON)
endif()
target_link_libraries(webengineviewer_donottrackplugin
Qt5::WebEngine
......
Markdown is supported
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