include_directories( ${kdepim-runtime_SOURCE_DIR} ${QT_QTDBUS_INCLUDE_DIR} ${Boost_INCLUDE_DIR} ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}" ) add_subdirectory(wizard) ########### next target ############### set( mboxresource_SRCS ${AKONADI_SINGLEFILERESOURCE_SHARED_SOURCES} compactpage.cpp lockmethodpage.cpp deleteditemsattribute.cpp mboxresource.cpp ) install( FILES mboxresource.desktop DESTINATION "${CMAKE_INSTALL_PREFIX}/share/akonadi/agents" ) kde4_add_ui_files(mboxresource_SRCS ${AKONADI_SINGLEFILERESOURCE_SHARED_UI} compactpage.ui lockfilepage.ui ) kde4_add_kcfg_files(mboxresource_SRCS settings.kcfgc) kcfg_generate_dbus_interface(${CMAKE_CURRENT_SOURCE_DIR}/mboxresource.kcfg org.kde.Akonadi.Mbox.Settings) qt4_add_dbus_adaptor(mboxresource_SRCS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.Mbox.Settings.xml settings.h Settings ) kde4_add_plugin(akonadi_mbox_resource ${mboxresource_SRCS}) if (Q_WS_MAC) set_target_properties(akonadi_mbox_resource PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/../Info.plist.template) set_target_properties(akonadi_mbox_resource PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.Akonadi.Mbox") set_target_properties(akonadi_mbox_resource PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "KDE Akonadi Mbox Resource") endif () target_link_libraries(akonadi_mbox_resource ${KDEPIMLIBS_KMBOX_LIBS} ${KDEPIMLIBS_AKONADI_LIBS} ${KDEPIMLIBS_AKONADI_KMIME_LIBS} ${QT_QTDBUS_LIBRARY} ${KDE4_KIO_LIBS} ${KDEPIMLIBS_KMIME_LIBS}) install(TARGETS akonadi_mbox_resource DESTINATION ${PLUGIN_INSTALL_DIR})