Fix compilation with akonadi in its own prefix
[kdepim.git] / akonadi / plugins / CMakeLists.txt
blobb8993261314a2dc79a4f46c10ef6f1c48c68c6f5
1 add_subdirectory( tests )
3 include_directories(
4         ${Boost_INCLUDE_DIR}
5         ${AKONADI_INCLUDE_DIR}
8 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}" )
11 set(akonadi_serializer_addressee_PART_SRCS akonadi_serializer_addressee.cpp )
12 kde4_add_plugin(akonadi_serializer_addressee ${akonadi_serializer_addressee_PART_SRCS})
13 target_link_libraries(akonadi_serializer_addressee ${KDE4_KDECORE_LIBS} ${KDE4_KABC_LIBS} ${KDE4_AKONADI_LIBS})
14 install(TARGETS akonadi_serializer_addressee DESTINATION ${PLUGIN_INSTALL_DIR})
16 set(akonadi_serializer_mail_PART_SRCS akonadi_serializer_mail.cpp )
17 kde4_add_plugin(akonadi_serializer_mail ${akonadi_serializer_mail_PART_SRCS})
18 target_link_libraries(akonadi_serializer_mail ${KDE4_KDECORE_LIBS} ${KDE4_KMIME_LIBS} ${KDE4_AKONADI_LIBS} akonadiprotocolinternals ${KDE4_AKONADI_KMIME_LIBS})
19 install(TARGETS akonadi_serializer_mail DESTINATION ${PLUGIN_INSTALL_DIR})
21 set(akonadi_serializer_kcal_SRCS akonadi_serializer_kcal.cpp)
22 kde4_add_plugin(akonadi_serializer_kcal ${akonadi_serializer_kcal_SRCS})
23 target_link_libraries(akonadi_serializer_kcal ${KDE4_KDECORE_LIBS} ${KDE4_KCAL_LIBS} ${KDE4_AKONADI_LIBS})
24 install(TARGETS akonadi_serializer_kcal DESTINATION ${PLUGIN_INSTALL_DIR})
26 set(akonadi_serializer_bookmark_SRCS akonadi_serializer_bookmark.cpp)
27 kde4_add_plugin(akonadi_serializer_bookmark ${akonadi_serializer_bookmark_SRCS})
28 target_link_libraries(akonadi_serializer_bookmark ${KDE4_KDECORE_LIBS} ${KDE4_KIO_LIBS} ${KDE4_AKONADI_LIBS})
29 install(TARGETS akonadi_serializer_bookmark DESTINATION ${PLUGIN_INSTALL_DIR})
31 ########### install files ###############
33 install( FILES
34   akonadi_serializer_addressee.desktop
35   akonadi_serializer_mail.desktop
36   akonadi_serializer_kcal.desktop
37   akonadi_serializer_bookmark.desktop
38 DESTINATION ${DATA_INSTALL_DIR}/akonadi/plugins/serializer)