Commit 7691490e authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use non-deprecated KDEInstallDirs variables

parent 2e3c13ff
......@@ -77,7 +77,7 @@ add_subdirectory(daemon)
add_subdirectory(kcmodule)
add_subdirectory(doc)
install( FILES powerdevil.notifyrc DESTINATION ${KNOTIFYRC_INSTALL_DIR} )
install( FILES powerdevil.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR} )
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
......
......@@ -132,10 +132,10 @@ endif ()
target_link_libraries(powerdevil ${UDEV_LIBS})
install(TARGETS powerdevil DESTINATION ${CMAKE_INSTALL_FULL_LIBEXECDIR})
install(TARGETS powerdevil DESTINATION ${KDE_INSTALL_FULL_LIBEXECDIR})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/powerdevil.desktop
DESTINATION ${KDE_INSTALL_AUTOSTARTDIR})
install(TARGETS powerdevilcore ${INSTALL_TARGETS_DEFAULT_ARGS})
install(TARGETS powerdevilcore ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
# target no.3 - powerdevil ui library
set(powerdevilui_SRCS
......@@ -155,4 +155,4 @@ target_link_libraries(powerdevilui
set(HAVE_XCB ${XCB_FOUND})
configure_file(config-powerdevil.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-powerdevil.h )
install(TARGETS powerdevilui ${INSTALL_TARGETS_DEFAULT_ARGS})
install(TARGETS powerdevilui ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES powerdevilaction.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})
install(FILES powerdevilaction.desktop DESTINATION ${KDE_INSTALL_KSERVICETYPES5DIR})
add_subdirectory(bundled)
add_subdirectory(dpms)
......@@ -10,8 +10,8 @@ function(add_powerdevil_bundled_action _name)
KF5::ConfigGui
KF5::XmlGui
${ARGN})
install(TARGETS powerdevil${_name}action_config DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES powerdevil${_name}action.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(TARGETS powerdevil${_name}action_config DESTINATION ${KDE_INSTALL_PLUGINDIR})
install(FILES powerdevil${_name}action.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
endfunction(add_powerdevil_bundled_action _name)
add_powerdevil_bundled_action(brightnesscontrol KF5::GlobalAccel)
......@@ -39,5 +39,5 @@ target_link_libraries(powerdevilhandlebuttoneventsaction_config
KF5::XmlGui
KF5::KDELibs4Support
)
install(TARGETS powerdevilhandlebuttoneventsaction_config DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES powerdevilhandlebuttoneventsaction.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(TARGETS powerdevilhandlebuttoneventsaction_config DESTINATION ${KDE_INSTALL_PLUGINDIR})
install(FILES powerdevilhandlebuttoneventsaction.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
......@@ -21,8 +21,8 @@ target_link_libraries(powerdevildpmsaction
KF5::WaylandClient
Qt5::Widgets
powerdevilcore)
install(TARGETS powerdevildpmsaction DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES powerdevildpmsaction.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(TARGETS powerdevildpmsaction DESTINATION ${KDE_INSTALL_PLUGINDIR})
install(FILES powerdevildpmsaction.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
# Action config
set(dpmsconfig_SRCS powerdevildpmsactionconfig.cpp)
......@@ -34,4 +34,4 @@ target_link_libraries(powerdevildpmsaction_config
KF5::I18n
Qt5::Widgets
powerdevilui)
install(TARGETS powerdevildpmsaction_config DESTINATION ${PLUGIN_INSTALL_DIR})
install(TARGETS powerdevildpmsaction_config DESTINATION ${KDE_INSTALL_PLUGINDIR})
......@@ -66,4 +66,4 @@ if(DDCUTIL_FOUND)
target_link_libraries(powerdevilupowerbackend ${LIBDDCUTIL_LIBRARY})
endif()
install(TARGETS powerdevilupowerbackend DESTINATION ${PLUGIN_INSTALL_DIR}/kf5/powerdevil)
install(TARGETS powerdevilupowerbackend DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/powerdevil)
......@@ -48,7 +48,7 @@ Name[uk]=Керування живленням
Name[x-test]=xxPower Managementxx
Name[zh_CN]=电源管理
Name[zh_TW]=電源管理
Exec=@CMAKE_INSTALL_FULL_LIBEXECDIR@/org_kde_powerdevil
Exec=@KDE_INSTALL_FULL_LIBEXECDIR@/org_kde_powerdevil
OnlyShowIn=KDE;
Comment=Battery, Display and CPU power management and notification
......
########### install files ###############
#
kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR kcontrol/powerdevil)
kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/en SUBDIR kcontrol/powerdevil)
......@@ -21,5 +21,5 @@ target_link_libraries(kcm_powerdevilactivitiesconfig
powerdevilconfigcommonprivate
)
install(TARGETS kcm_powerdevilactivitiesconfig DESTINATION ${PLUGIN_INSTALL_DIR} )
install( FILES powerdevilactivitiesconfig.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install(TARGETS kcm_powerdevilactivitiesconfig DESTINATION ${KDE_INSTALL_PLUGINDIR} )
install( FILES powerdevilactivitiesconfig.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
......@@ -20,4 +20,4 @@ target_link_libraries(powerdevilconfigcommonprivate
set_target_properties(powerdevilconfigcommonprivate PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
install( TARGETS powerdevilconfigcommonprivate ${INSTALL_TARGETS_DEFAULT_ARGS} )
install( TARGETS powerdevilconfigcommonprivate ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
......@@ -20,5 +20,5 @@ target_link_libraries(kcm_powerdevilglobalconfig
powerdevilconfigcommonprivate
)
install(TARGETS kcm_powerdevilglobalconfig DESTINATION ${PLUGIN_INSTALL_DIR} )
install( FILES powerdevilglobalconfig.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install(TARGETS kcm_powerdevilglobalconfig DESTINATION ${KDE_INSTALL_PLUGINDIR} )
install( FILES powerdevilglobalconfig.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
......@@ -23,5 +23,5 @@ target_link_libraries(kcm_powerdevilprofilesconfig
powerdevilconfigcommonprivate
)
install(TARGETS kcm_powerdevilprofilesconfig DESTINATION ${PLUGIN_INSTALL_DIR} )
install( FILES powerdevilprofilesconfig.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install(TARGETS kcm_powerdevilprofilesconfig DESTINATION ${KDE_INSTALL_PLUGINDIR} )
install( FILES powerdevilprofilesconfig.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
Supports Markdown
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