fde2a1f709
- Installs PlasmaConfig, FindPlasma, PlasmaMacros, etc. - find_package Plasma works - version set to 2.0.0, do we dare that? This might bump into FindPlasma.cmake, which is installed by kdelibs, and should be removed: it applies to Plasma 4.1 only and bails out, since after that, we used the KDE4 libs find_package foo. Now we're kind of going back to pre-4.2 times. :-)
19 lines
547 B
CMake
19 lines
547 B
CMake
|
|
|
|
|
|
find_package(KF5 MODULE REQUIRED COMPONENTS InstallDirs)
|
|
|
|
macro(installPackage dir component)
|
|
set(root ${ARGV2})
|
|
set(type ${ARGV3})
|
|
if(NOT root)
|
|
set(root plasma/plasmoids)
|
|
endif()
|
|
if(NOT type)
|
|
set(type applet)
|
|
endif()
|
|
install(DIRECTORY ${dir}/ DESTINATION ${DATA_INSTALL_DIR}/${root}/${component} PATTERN .svn EXCLUDE PATTERN CMakeLists.txt EXCLUDE PATTERN Messages.sh EXCLUDE)
|
|
install(FILES ${dir}/metadata.desktop DESTINATION ${SERVICES_INSTALL_DIR} RENAME plasma-${type}-${component}.desktop)
|
|
endmacro()
|
|
|