CMakeLists.txt 1015 Bytes
Newer Older
1
configure_file (config-libkpimidentities.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-libkpimidentities.h)
2

3
4
5
if(GPGME_FOUND)
   include_directories( ${CMAKE_SOURCE_DIR}/libkleo  )
endif(GPGME_FOUND)
6
7
8
9


########### next target ###############

10
set(kpimidentities_LIB_SRCS identitymanager.cpp identity.cpp identitycombo.cpp)
11

12
kde4_automoc(${kpimidentities_LIB_SRCS})
13

14
qt4_add_dbus_adaptor(kpimidentities_LIB_SRCS org.kde.pim.IdentityManager.xml identitymanager.h KPIM::IdentityManager )
15
16
17

kde4_add_library(kpimidentities SHARED ${kpimidentities_LIB_SRCS})

18
19
20
21
22
if(GPGME_FOUND)
   target_link_libraries(kpimidentities  ${KDE4_KDEUI_LIBS} kleopatra kdepim )
else(GPGME_FOUND)
   target_link_libraries(kpimidentities  ${KDE4_KDEUI_LIBS} kdepim )
endif(GPGME_FOUND)
23

Allen Winter's avatar
Allen Winter committed
24
set_target_properties(kpimidentities PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
25
install(TARGETS kpimidentities  DESTINATION ${LIB_INSTALL_DIR})
26

Laurent Montel's avatar
Laurent Montel committed
27
install(FILES org.kde.pim.IdentityManager.xml DESTINATION ${DBUS_INTERFACES_DIR})