Warning, /pim/akonadi/autotests/libs/testresource/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 include(${CMAKE_SOURCE_DIR}/KPimAkonadiMacros.cmake)
0002 
0003 kde_enable_exceptions()
0004 
0005 remove_definitions(-DTRANSLATION_DOMAIN=\"libakonadi6\")
0006 add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_knut_resource\")
0007 
0008 # Disabled for now, resourcetester remained in kdepim-runtime
0009 #add_subdirectory( tests )
0010 
0011 set( knutresource_SRCS knutresource.cpp knutresource.h)
0012 
0013 ecm_qt_declare_logging_category(knutresource_SRCS HEADER knutresource_debug.h IDENTIFIER KNUTRESOURCE_LOG CATEGORY_NAME org.kde.pim.knut)
0014 
0015 
0016 kconfig_add_kcfg_files(knutresource_SRCS settings.kcfgc)
0017 
0018 kcfg_generate_dbus_interface(${CMAKE_CURRENT_SOURCE_DIR}/knutresource.kcfg org.kde.Akonadi.Knut.Settings)
0019 
0020 qt_add_dbus_adaptor(knutresource_SRCS
0021   ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.Knut.Settings.xml settings.h KnutSettings
0022 )
0023 
0024 add_executable(akonadi_knut_resource ${knutresource_SRCS})
0025 set_target_properties(akonadi_knut_resource PROPERTIES MACOSX_BUNDLE FALSE)
0026 
0027 target_link_libraries(akonadi_knut_resource
0028   KPim6::AkonadiXml
0029   KPim6::AkonadiCore
0030   KF6::KIOCore
0031   KPim6::AkonadiAgentBase
0032   Qt::Xml
0033   KF6::I18n
0034 )
0035 
0036 install( TARGETS akonadi_knut_resource ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0037 install( FILES knutresource.desktop DESTINATION "${KDE_INSTALL_DATAROOTDIR}/akonadi/agents" )
0038 install( FILES knut-template.xml DESTINATION ${KDE_INSTALL_DATADIR_KF}/akonadi_knut_resource/ )