2013-05-03 01:14:19 +02:00
|
|
|
@PACKAGE_INIT@
|
|
|
|
|
|
|
|
# Any changes in this ".cmake" file will be overwritten by CMake, the source is the ".cmake.in" file.
|
|
|
|
|
2014-12-30 13:06:16 +01:00
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/KF5PlasmaTargets.cmake")
|
2017-05-20 05:04:10 +02:00
|
|
|
@PACKAGE_INCLUDE_QCHTARGETS@
|
2014-12-30 13:06:16 +01:00
|
|
|
|
2013-05-03 01:14:19 +02:00
|
|
|
set(Plasma_INSTALL_PREFIX "@PACKAGE_CMAKE_INSTALL_PREFIX@")
|
|
|
|
|
2013-10-16 00:47:47 +02:00
|
|
|
set(Plasma_LIBRARIES KF5::Plasma)
|
2013-06-13 16:01:06 +02:00
|
|
|
|
2015-05-07 16:26:37 +02:00
|
|
|
set(PLASMA_DATAENGINES_PLUGINDIR ${KDE_INSTALL_PLUGINDIR}/plasma/dataengine)
|
2016-06-13 16:27:32 +02:00
|
|
|
set(PLASMA_PLASMOIDS_PLUGINDIR ${KDE_INSTALL_PLUGINDIR}/plasma/applets)
|
2015-05-07 16:26:37 +02:00
|
|
|
set(PLASMA_SCRIPTENGINES_PLUGINDIR ${KDE_INSTALL_PLUGINDIR}/plasma/scriptengines)
|
|
|
|
set(PLASMA_CONTAINMENTACTIONS_PLUGINDIR ${KDE_INSTALL_PLUGINDIR}/plasma/containmentactions)
|
|
|
|
|
2017-01-04 00:57:30 +01:00
|
|
|
include(CMakeFindDependencyMacro)
|
2016-07-20 14:32:28 +02:00
|
|
|
find_dependency(Qt5Gui "@REQUIRED_QT_VERSION@")
|
2015-03-18 21:29:09 +01:00
|
|
|
find_dependency(KF5Package "@KF5_DEP_VERSION@")
|
|
|
|
find_dependency(KF5Service "@KF5_DEP_VERSION@")
|
2017-07-03 21:47:55 +02:00
|
|
|
find_dependency(KF5WindowSystem "@KF5_DEP_VERSION@")
|
2015-03-18 21:29:09 +01:00
|
|
|
|
2017-12-23 16:46:04 +01:00
|
|
|
if(NOT CMAKE_VERSION VERSION_LESS "3.10.0")
|
|
|
|
# CMake 3.9+ warns about automoc on files without Q_OBJECT, and doesn't know about other macros.
|
|
|
|
# 3.10+ lets us provide more macro names that require automoc.
|
|
|
|
list(APPEND CMAKE_AUTOMOC_MACRO_NAMES @Plasma_AUTOMOC_MACRO_NAMES@)
|
|
|
|
endif()
|
2018-02-22 01:59:12 +01:00
|
|
|
if(NOT CMAKE_VERSION VERSION_LESS "3.9.0")
|
|
|
|
foreach(macro_name @Plasma_AUTOMOC_MACRO_NAMES_WITH_JSON_ARG2@)
|
|
|
|
# tell automoc how to find names of plugin metadata files
|
|
|
|
list(APPEND CMAKE_AUTOMOC_DEPEND_FILTERS
|
|
|
|
"${macro_name}"
|
|
|
|
"[\n^][ \t]*${macro_name}[ \t\n]*\\([^,]*,[ \t\n]*\"([^\"]+)\""
|
|
|
|
)
|
|
|
|
endforeach()
|
|
|
|
foreach(macro_name @Plasma_AUTOMOC_MACRO_NAMES_WITH_JSON_ARG3@)
|
|
|
|
# tell automoc how to find names of plugin metadata files
|
|
|
|
list(APPEND CMAKE_AUTOMOC_DEPEND_FILTERS
|
|
|
|
"${macro_name}"
|
|
|
|
"[\n^][ \t]*${macro_name}[ \t\n]*\\([^,]*,[^,]*,[ \t\n]*\"([^\"]+)\""
|
|
|
|
)
|
|
|
|
endforeach()
|
|
|
|
endif()
|
2017-12-23 16:46:04 +01:00
|
|
|
|
2013-12-11 12:39:48 +01:00
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/KF5PlasmaMacros.cmake")
|