Warning, /office/kmymoney/kmymoney/plugins/xml/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/xmlstorage.json.cmake ${CMAKE_CURRENT_BINARY_DIR}/xmlstorage.json @ONLY)
0002 
0003 set(xmlstorage_SOURCES
0004   mymoneyxmlreader.cpp
0005   mymoneyxmlwriter.cpp
0006   mymoneyanonwriter.cpp
0007   mymoneystoragenames.cpp
0008   kgpgkeyselectiondlg.cpp
0009   xmlstorage.cpp
0010   )
0011 
0012 ki18n_wrap_ui(xmlstorage_SOURCES kgpgkeyselectiondlg.ui)
0013 
0014 kmymoney_add_plugin(xmlstorage SOURCES ${xmlstorage_SOURCES})
0015 
0016 target_link_libraries(xmlstorage
0017   PUBLIC
0018     kmm_plugin
0019   PRIVATE
0020     Qt::Xml
0021     KF5::Archive
0022     KF5::I18n
0023     KF5::CoreAddons
0024     $<$<BOOL:${ENABLE_GPG}>:kmm_gpgfile>
0025     kmymoney_common
0026     kmm_mymoney
0027     xmlstoragehelper
0028     onlinetask_interfaces
0029 )
0030 
0031 # install(FILES kmymoney-xmlstorageplugin.desktop
0032 #   DESTINATION ${SERVICETYPES_INSTALL_DIR}
0033 # )
0034 
0035 if(BUILD_TESTING)
0036   add_subdirectory(tests)
0037 endif()
0038 
0039 
0040 # the KCM module
0041 set(kcm_xmlstorage_PART_SRCS
0042     kcm_xmlstorage.cpp
0043     )
0044 
0045 kconfig_add_kcfg_files(kcm_xmlstorage_PART_SRCS xmlstoragesettings.kcfgc)
0046 
0047 ki18n_wrap_ui(kcm_xmlstorage_PART_SRCS xmlstoragesettings.ui)
0048 
0049 kmymoney_add_plugin_kcm(kcm_xmlstorage SOURCES ${kcm_xmlstorage_PART_SRCS})
0050 
0051 target_link_libraries(kcm_xmlstorage
0052   PRIVATE
0053     KF5::I18n
0054     KF5::CoreAddons
0055     KF5::ConfigWidgets
0056     KF5::Completion
0057     $<$<BOOL:${ENABLE_GPG}>:kmm_gpgfile>
0058     kmm_settings
0059 )