Commit a90b1fb7 authored by Laurent Montel's avatar Laurent Montel 😁

Update installation variables.

parent 691b7eb6
......@@ -59,7 +59,7 @@ add_subdirectory(autotests)
add_subdirectory(tests)
########### CMake Config Files ###########
set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/KF5AkonadiContact")
set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF5AkonadiContact")
ecm_configure_package_config_file(
"${CMAKE_CURRENT_SOURCE_DIR}/KF5AkonadiContactConfig.cmake.in"
......@@ -78,7 +78,7 @@ install(EXPORT KF5AkonadiContactTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/akonadi-contact_version.h
DESTINATION ${KF5_INCLUDE_INSTALL_DIR} COMPONENT Devel
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5} COMPONENT Devel
)
if ("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
......
......@@ -122,10 +122,10 @@ generate_export_header(KF5AkonadiContact BASE_NAME akonadi-contact)
add_library(KF5::AkonadiContact ALIAS KF5AkonadiContact)
target_include_directories(KF5AkonadiContact INTERFACE "$<INSTALL_INTERFACE:${KF5_INCLUDE_INSTALL_DIR}/Akonadi/Contact;${Boost_INCLUDE_DIR};${PHONON_INCLUDES}>")
target_include_directories(KF5AkonadiContact INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/Akonadi/Contact;${Boost_INCLUDE_DIR};${PHONON_INCLUDES}>")
target_include_directories(KF5AkonadiContact PUBLIC "$<BUILD_INTERFACE:${Akonadi-Contact_SOURCE_DIR}/src;${Akonadi-Contact_BINARY_DIR}/src;${Boost_INCLUDE_DIR};${PHONON_INCLUDES}>")
# TODO: Remove when kdepimlibs is split (and fix the broken includes in eg. akonadi-calendar)
target_include_directories(KF5AkonadiContact INTERFACE "$<INSTALL_INTERFACE:${KF5_INCLUDE_INSTALL_DIR}/akonadi/contact>")
target_include_directories(KF5AkonadiContact INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/akonadi/contact>")
target_link_libraries(KF5AkonadiContact
PUBLIC
......@@ -157,13 +157,13 @@ install(TARGETS
EXPORT KF5AkonadiContactTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS}
)
install(FILES editor/pics/world.jpg DESTINATION ${KF5_DATA_INSTALL_DIR}/akonadi/contact/pics)
install(FILES editor/data/zone.tab DESTINATION ${KF5_DATA_INSTALL_DIR}/akonadi/contact/data)
install(FILES recentcontactscollections.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
install(FILES editor/pics/world.jpg DESTINATION ${KDE_INSTALL_DATADIR_KF5}/akonadi/contact/pics)
install(FILES editor/data/zone.tab DESTINATION ${KDE_INSTALL_DATADIR_KF5}/akonadi/contact/data)
install(FILES recentcontactscollections.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR} )
ecm_generate_pri_file(BASE_NAME AkonadiContact
LIB_NAME KF5AkonadiContact
DEPS "AkonadiCore Abc" FILENAME_VAR PRI_FILENAME INCLUDE_INSTALL_DIR ${KF5_INCLUDE_INSTALL_DIR}/Akonadi/Contact
DEPS "AkonadiCore Abc" FILENAME_VAR PRI_FILENAME INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR_KF5}/Akonadi/Contact
)
install(FILES ${PRI_FILENAME} DESTINATION ${ECM_MKSPECS_INSTALL_DIR})
......@@ -202,13 +202,13 @@ ecm_generate_headers(AkonadiContact_CamelCase_HEADERS
install( FILES
${AkonadiContact_CamelCase_HEADERS}
DESTINATION ${KF5_INCLUDE_INSTALL_DIR}/Akonadi/Contact COMPONENT Devel
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/Akonadi/Contact COMPONENT Devel
)
install( FILES
${AkonadiContact_HEADERS}
${CMAKE_CURRENT_BINARY_DIR}/akonadi-contact_export.h
editor/im/improtocols.h
DESTINATION ${KF5_INCLUDE_INSTALL_DIR}/akonadi/contact COMPONENT Devel
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/akonadi/contact COMPONENT Devel
)
add_subdirectory( icons )
add_subdirectory( protocols )
install( FILES kaddressbookimprotocol.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})
install( FILES kaddressbookimprotocol.desktop DESTINATION ${KDE_INSTALL_KSERVICETYPES5DIR})
......@@ -3,4 +3,4 @@ ecm_install_icons( ICONS
ox16-apps-aim_protocol.png ox16-apps-groupwise_protocol.png ox16-apps-irc_protocol.png ox16-apps-meanwhile_protocol.png ox16-apps-skype_protocol.png ox16-apps-yahoo_protocol.png
ox16-apps-gadu_protocol.png ox16-apps-icq_protocol.png ox16-apps-jabber_protocol.png ox16-apps-msn_protocol.png ox16-apps-sms_protocol.png
DESTINATION
${KF5_DATA_INSTALL_DIR}/akonadi/contact/icons )
${KDE_INSTALL_DATADIR_KF5}/akonadi/contact/icons )
......@@ -11,4 +11,4 @@ install( FILES icqprotocol.desktop
meanwhileprotocol.desktop
skypeprotocol.desktop
googletalkprotocol.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/akonadi/contact )
DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/akonadi/contact )
......@@ -13,8 +13,8 @@ add_library(kcm_akonadicontact_actions MODULE ${kcm_akonadicontact_actions_SRCS}
target_link_libraries(kcm_akonadicontact_actions KF5::ConfigWidgets KF5::KDELibs4Support)
install(TARGETS kcm_akonadicontact_actions DESTINATION ${PLUGIN_INSTALL_DIR})
install(TARGETS kcm_akonadicontact_actions DESTINATION ${KDE_INSTALL_PLUGINDIR})
########### install files ###############
install(FILES akonadicontact_actions.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(FILES akonadicontact_actions.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
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