Warning, /plasma/discover/libdiscover/backends/FlatpakBackend/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 add_subdirectory(tests)
0002 
0003 set(flatpak-backend_SRCS
0004     FlatpakResource.cpp
0005     FlatpakBackend.cpp
0006     FlatpakFetchDataJob.cpp
0007     FlatpakSourcesBackend.cpp
0008     FlatpakJobTransaction.cpp
0009     FlatpakTransactionThread.cpp
0010     FlatpakRefreshAppstreamMetadataJob.cpp
0011     FlatpakPermission.cpp
0012     resources.qrc
0013 )
0014 
0015 add_library(flatpak-backend MODULE ${flatpak-backend_SRCS})
0016 target_link_libraries(flatpak-backend Qt::Core Qt::Widgets Qt::Concurrent KF6::CoreAddons KF6::ConfigCore KF6::KIOGui Discover::Common AppStreamQt PkgConfig::Flatpak)
0017 
0018 if (AppStreamQt_VERSION VERSION_GREATER 0.14.6)
0019     target_compile_definitions(flatpak-backend PRIVATE -DAPPSTREAM_NEW_POOL_API)
0020 endif()
0021 
0022 if (NOT Flatpak_VERSION VERSION_LESS 1.1.2)
0023     target_compile_definitions(flatpak-backend PRIVATE -DFLATPAK_VERBOSE_PROGRESS -DFLATPAK_LIST_UNUSED_REFS)
0024 endif()
0025 
0026 install(TARGETS flatpak-backend DESTINATION ${KDE_INSTALL_PLUGINDIR}/discover)
0027 install(FILES flatpak-backend-categories.xml DESTINATION ${KDE_INSTALL_DATADIR}/libdiscover/categories)
0028 
0029 add_library(FlatpakNotifier MODULE FlatpakNotifier.cpp)
0030 target_link_libraries(FlatpakNotifier Discover::Notifiers Qt::Concurrent PkgConfig::Flatpak)
0031 set_target_properties(FlatpakNotifier PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR}/plasma-discover)
0032 
0033 if (Flatpak_VERSION VERSION_LESS 1.10.2)
0034     target_compile_definitions(flatpak-backend PRIVATE -DFLATPAK_EXTERNC_REQUIRED)
0035     target_compile_definitions(FlatpakNotifier PRIVATE -DFLATPAK_EXTERNC_REQUIRED)
0036 endif()
0037 
0038 install(TARGETS FlatpakNotifier DESTINATION ${KDE_INSTALL_PLUGINDIR}/discover-notifier)
0039 install(PROGRAMS org.kde.discover-flatpak.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
0040 install(FILES org.kde.discover.flatpak.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR} )
0041 
0042 ecm_install_icons(
0043     ICONS
0044         sc-apps-flatpak-discover.svg
0045     DESTINATION ${KDE_INSTALL_ICONDIR}
0046     THEME hicolor
0047 )