CMakeLists.txt 1.02 KB
Newer Older
1

Laurent Montel's avatar
Laurent Montel committed
2
add_definitions(-DTRANSLATION_DOMAIN=\"kcm_akonadicontact_actions\")
3
4
5
6
7
########### next target ###############

set(kcm_akonadicontact_actions_SRCS
    kcmakonadicontactactions.cpp)

Laurent Montel's avatar
Laurent Montel committed
8
ki18n_wrap_ui(kcm_akonadicontact_actions_SRCS akonadicontactactions.ui)
9

Laurent Montel's avatar
Laurent Montel committed
10
11
configure_file( ${Akonadi-Contact_SOURCE_DIR}/src/actions/contactactionssettings.kcfg.cmake ${CMAKE_CURRENT_BINARY_DIR}/contactactionssettings.kcfg @ONLY)
kconfig_add_kcfg_files(kcm_akonadicontact_actions_SRCS ${Akonadi-Contact_SOURCE_DIR}/src/actions/contactactionssettings.kcfgc)
12

13

Laurent Montel's avatar
Laurent Montel committed
14
add_library(kcm_akonadicontact_actions MODULE ${kcm_akonadicontact_actions_SRCS})
Laurent Montel's avatar
Laurent Montel committed
15
#kcoreaddons_desktop_to_json(kcm_akonadicontact_actions akonadicontact_actions.desktop DEFAULT_SERVICE_TYPE)
16

Laurent Montel's avatar
Laurent Montel committed
17
target_link_libraries(kcm_akonadicontact_actions KF5::ConfigWidgets KF5::I18n KF5::Completion) 
18

19
20


21
install(TARGETS kcm_akonadicontact_actions DESTINATION ${KDE_INSTALL_PLUGINDIR})
22
23
24

########### install files ###############

25
install(FILES akonadicontact_actions.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})