CMakeLists.txt 1.25 KB
Newer Older
1

2
find_package(KF5 NO_MODULE REQUIRED COMPONENTS CoreAddons KIO Sonnet)
3
4
add_definitions( -DQT_NO_CAST_TO_ASCII )

Tom Albers's avatar
Tom Albers committed
5
set(kpimidentities_LIB_SRCS identitymanager.cpp identity.cpp signature.cpp signatureconfigurator.cpp identitycombo.cpp)
6

7
add_subdirectory( tests )
8

9
qt4_add_dbus_adaptor(kpimidentities_LIB_SRCS org.kde.pim.IdentityManager.xml identitymanager.h KPIMIdentities::IdentityManager )
10

11
12
13
14
include_directories(
  ${CMAKE_BINARY_DIR}/kpimutils
  ${CMAKE_BINARY_DIR}/kpimtextedit
)
15

16
target_link_libraries(kpimidentities KF5::CoreAddons KF5::KIOCore KF5::SonnetCore kpimutils kpimtextedit )
17
generate_export_header(kpimidentities)
18

19
target_link_libraries(kpimidentities kpimutils ${KDE4_KIO_LIBS} kpimtextedit)
20

Allen Winter's avatar
Allen Winter committed
21
set_target_properties(kpimidentities PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
22
install(TARGETS kpimidentities EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
23

24
install(FILES org.kde.pim.IdentityManager.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR})
25
26
install(FILES
        identity.h
27
        signature.h
Tom Albers's avatar
Tom Albers committed
28
        signatureconfigurator.h
29
30
        identitymanager.h
        identitycombo.h
31
        ${CMAKE_CURRENT_BINARY_DIR}/kpimidentities_export.h
32
        DESTINATION ${INCLUDE_INSTALL_DIR}/kpimidentities COMPONENT Devel)
33