Commit 29163c42 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Update installation variables.

parent ce126897
......@@ -50,7 +50,7 @@ add_subdirectory(src)
add_subdirectory(autotests)
########### CMake Config Files ###########
set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/KF5IdentityManagement")
set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF5IdentityManagement")
ecm_configure_package_config_file(
"${CMAKE_CURRENT_SOURCE_DIR}/KF5IdentityManagementConfig.cmake.in"
......@@ -73,7 +73,7 @@ install(EXPORT KF5IdentityManagementTargets
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/kidentitymanagement_version.h
DESTINATION ${KF5_INCLUDE_INSTALL_DIR}
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}
COMPONENT Devel
)
......
......@@ -15,7 +15,7 @@ generate_export_header(KF5IdentityManagement BASE_NAME kidentitymanagement)
add_library(KF5::IdentityManagement ALIAS KF5IdentityManagement)
target_include_directories(KF5IdentityManagement INTERFACE "$<INSTALL_INTERFACE:${KF5_INCLUDE_INSTALL_DIR}/KIdentityManagement;${KF5_INCLUDE_INSTALL_DIR}/KIdentityManagement/kidentitymanagement;>")
target_include_directories(KF5IdentityManagement INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/KIdentityManagement;${KF5_INCLUDE_INSTALL_DIR}/KIdentityManagement/kidentitymanagement;>")
target_include_directories(KF5IdentityManagement PUBLIC "$<BUILD_INTERFACE:${KIdentityManagement_SOURCE_DIR}/src;${KIdentityManagement_BINARY_DIR}/src>")
target_link_libraries(KF5IdentityManagement
......@@ -59,16 +59,16 @@ ecm_generate_headers(KIdentityManagement_CamelCase_HEADERS
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/kidentitymanagement_export.h
${KIdentityManagement_HEADERS}
DESTINATION ${KF5_INCLUDE_INSTALL_DIR}/KIdentityManagement/kidentitymanagement
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/KIdentityManagement/kidentitymanagement
COMPONENT Devel
)
install(FILES ${KIdentityManagement_CamelCase_HEADERS}
DESTINATION ${KF5_INCLUDE_INSTALL_DIR}/KIdentityManagement/KIdentityManagement/
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/KIdentityManagement/KIdentityManagement/
COMPONENT Devel
)
install(FILES org.kde.pim.IdentityManager.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR} RENAME kf5_org.kde.pim.IdentityManager.xml)
install(FILES org.kde.pim.IdentityManager.xml DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR} RENAME kf5_org.kde.pim.IdentityManager.xml)
ecm_generate_pri_file(BASE_NAME KIdentityManagement LIB_NAME KF5IdentityManagement DEPS "CoreAddons PimTextEdit" FILENAME_VAR PRI_FILENAME INCLUDE_INSTALL_DIR ${KF5_INCLUDE_INSTALL_DIR}/KIdentityManagement)
ecm_generate_pri_file(BASE_NAME KIdentityManagement LIB_NAME KF5IdentityManagement DEPS "CoreAddons PimTextEdit" FILENAME_VAR PRI_FILENAME INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR_KF5}/KIdentityManagement)
install(FILES ${PRI_FILENAME} DESTINATION ${ECM_MKSPECS_INSTALL_DIR})
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