Warning, /plasma/discover/libdiscover/backends/SnapBackend/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 add_subdirectory(libsnapclient) 0002 0003 add_library(snap-backend MODULE SnapResource.cpp SnapBackend.cpp SnapTransaction.cpp snapui.qrc) 0004 target_link_libraries(snap-backend Qt::Gui Qt::Core Qt::Concurrent KF6::CoreAddons KF6::ConfigCore Discover::Common Snapd::Core) 0005 0006 if ("${Snapd_VERSION}" VERSION_GREATER 1.40) 0007 target_compile_definitions(snap-backend PRIVATE -DSNAP_COMMON_IDS -DSNAP_CHANNELS) 0008 endif() 0009 if ("${Snapd_VERSION}" VERSION_GREATER 1.42) 0010 target_compile_definitions(snap-backend PRIVATE -DSNAP_PUBLISHER) 0011 endif() 0012 if ("${Snapd_VERSION}" VERSION_GREATER 1.45) 0013 target_compile_definitions(snap-backend PRIVATE -DSNAP_MEDIA) 0014 endif() 0015 if ("${Snapd_VERSION}" VERSION_GREATER 1.48) 0016 target_compile_definitions(snap-backend PRIVATE -DSNAP_FIND_COMMON_ID -DSNAP_MARKDOWN) 0017 endif() 0018 0019 install(TARGETS snap-backend DESTINATION ${KDE_INSTALL_PLUGINDIR}/discover) 0020 install(FILES org.kde.discover.snap.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})