Don't hardcode Plasma version for fileitemaction install directory
This commit is contained in:
parent
41b26d7f71
commit
9733be4d16
|
@ -28,6 +28,22 @@ else()
|
||||||
set(PLASMOID_DISABLED_BY_DEFAULT OFF)
|
set(PLASMOID_DISABLED_BY_DEFAULT OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# determine Qt and KDE Frameworks version bases on the package prefix
|
||||||
|
set(QT_PACKAGE_PREFIX
|
||||||
|
"Qt5"
|
||||||
|
CACHE STRING "specifies the prefix for Qt packages")
|
||||||
|
set(KF_PACKAGE_PREFIX
|
||||||
|
"KF5"
|
||||||
|
CACHE STRING "specifies the prefix for KDE Frameworks packages")
|
||||||
|
set(QT_MAJOR_VERSION 5)
|
||||||
|
if (QT_PACKAGE_PREFIX MATCHES ".*Qt([0-9]+).*")
|
||||||
|
set(QT_MAJOR_VERSION "${CMAKE_MATCH_1}")
|
||||||
|
endif ()
|
||||||
|
set(KF_MAJOR_VERSION 5)
|
||||||
|
if (KF_PACKAGE_PREFIX MATCHES ".*KF([0-9]+).*")
|
||||||
|
set(KF_MAJOR_VERSION "${CMAKE_MATCH_1}")
|
||||||
|
endif ()
|
||||||
|
|
||||||
# add options for partial build
|
# add options for partial build
|
||||||
option(NO_LIBSYNCTHING "whether building Syncthing itself as a library should be skipped" ON)
|
option(NO_LIBSYNCTHING "whether building Syncthing itself as a library should be skipped" ON)
|
||||||
option(NO_CLI "whether building CLI should be skipped" OFF)
|
option(NO_CLI "whether building CLI should be skipped" OFF)
|
||||||
|
|
|
@ -61,7 +61,7 @@ set(DESKTOP_TARGET_FILE "${CMAKE_CURRENT_BINARY_DIR}/${META_TARGET_NAME}.desktop
|
||||||
configure_file("${DESKTOP_TEMPLATE_FILE}" "${DESKTOP_TARGET_FILE}")
|
configure_file("${DESKTOP_TEMPLATE_FILE}" "${DESKTOP_TARGET_FILE}")
|
||||||
install(
|
install(
|
||||||
FILES "${DESKTOP_TARGET_FILE}"
|
FILES "${DESKTOP_TARGET_FILE}"
|
||||||
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/kservices5"
|
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/kservices${KF_MAJOR_VERSION}"
|
||||||
COMPONENT desktop)
|
COMPONENT desktop)
|
||||||
|
|
||||||
# install appstream file
|
# install appstream file
|
||||||
|
|
Loading…
Reference in New Issue