include_directories( ${CMAKE_SOURCE_DIR}/libkleo ${Boost_INCLUDE_DIR} )

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

set(cryptopageplugin_SRCS cryptopageplugin.cpp )

include_directories(${GPGME_INCLUDES} )

kde4_add_plugin(cryptopageplugin ${cryptopageplugin_SRCS})
target_link_libraries(cryptopageplugin ${KDE4_KDECORE_LIBS} ${KDEPIMLIBS_KABC_LIBS} kleo)

install(TARGETS cryptopageplugin DESTINATION ${DATA_INSTALL_DIR}/akonadi/contact/editorpageplugins/)

include_directories( ${CMAKE_SOURCE_DIR}/libkleo ${Boost_INCLUDE_DIR} )

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

set(cryptopageplugin_SRCS cryptopageplugin.cpp )

include_directories(${GPGME_INCLUDES} )

kde4_add_plugin(cryptopageplugin ${cryptopageplugin_SRCS})
target_link_libraries(cryptopageplugin ${KDE4_KDECORE_LIBS} ${KDEPIMLIBS_KABC_LIBS} kleo)

install(TARGETS cryptopageplugin DESTINATION ${LIB_INSTALL_DIR}/akonadi/contact/editorpageplugins/)

Use plugins from $INSTALL_DIR/lib/ and not $INSTALL_DIR/share/apps
Use plugins from $INSTALL_DIR/lib/ and not $INSTALL_DIR/share/apps

svn path=/branches/KDE/4.4/kdepim/; revision=1096628
