CMakeLists.txt 1.07 KB
Newer Older
1

2
3
4
add_definitions( -DQT_NO_CAST_FROM_ASCII )
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
kde4_add_library(kpimidentities ${LIBRARY_TYPE} ${kpimidentities_LIB_SRCS})
12

13
target_link_libraries(kpimidentities ${QT_AND_KDECORE_LIBS}  kpimutils ${KDE4_KIO_LIBS} kpimtextedit )
14

Allen Winter's avatar
Allen Winter committed
15
set_target_properties(kpimidentities PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
16
install(TARGETS kpimidentities EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
17

18
install(FILES org.kde.pim.IdentityManager.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR})
19
20
install(FILES
        identity.h
21
        signature.h
Tom Albers's avatar
Tom Albers committed
22
        signatureconfigurator.h
23
24
        identitymanager.h
        identitycombo.h
25
        kpimidentities_export.h
26
        DESTINATION ${INCLUDE_INSTALL_DIR}/kpimidentities COMPONENT Devel)
27