Commit 4bf9a285 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix install header. + use KF5_INCLUDE_INSTALL_DIR

parent 8d227d20
......@@ -63,7 +63,7 @@ install(EXPORT KF5PimIdentitiesTargets
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/kpimidentities_version.h
DESTINATION ${INCLUDE_INSTALL_DIR}
DESTINATION ${KF5_INCLUDE_INSTALL_DIR}
COMPONENT Devel
)
......
......@@ -14,7 +14,7 @@ generate_export_header(KF5PimIdentities BASE_NAME kpimidentities)
add_library(KF5::PimIdentities ALIAS KF5PimIdentities)
target_include_directories(KF5PimIdentities INTERFACE "$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}/kpimidentities>")
target_include_directories(KF5PimIdentities INTERFACE "$<INSTALL_INTERFACE:${KF5_INCLUDE_INSTALL_DIR}/KPIMIdentities>")
target_include_directories(KF5PimIdentities PUBLIC "$<BUILD_INTERFACE:${KPimIdentities_SOURCE_DIR}/src;${KPimIdentities_BINARY_DIR}/src>")
target_link_libraries(KF5PimIdentities
......@@ -48,17 +48,12 @@ ecm_generate_headers(KPimIdentities_CamelCase_HEADERS
########### install files ###############
install(FILES
${KPimIdentities_CamelCase_HEADERS}
DESTINATION ${INCLUDE_INSTALL_DIR}/KPIMIdentities
COMPONENT Devel
)
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/kpimidentities_export.h
${KPimIdentities_HEADERS}
DESTINATION ${INCLUDE_INSTALL_DIR}/kpimidentities
COMPONENT Devel
${KPimIdentities_CamelCase_HEADERS}
DESTINATION ${KF5_INCLUDE_INSTALL_DIR}/KPIMIdentities
COMPONENT Devel
)
install(FILES org.kde.pim.IdentityManager.xml DESTINATION ${DBUS_INTERFACES_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