Warning, /utilities/kate/addons/snippets/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 find_package(KF6NewStuff ${KF5_DEP_VERSION} QUIET) 0002 set_package_properties(KF6NewStuff PROPERTIES PURPOSE "Required to build the snippets addon") 0003 0004 if(NOT KF6NewStuff_FOUND) 0005 return() 0006 endif() 0007 0008 kate_add_plugin(katesnippetsplugin) 0009 target_compile_definitions(katesnippetsplugin PRIVATE TRANSLATION_DOMAIN="katesnippetsplugin") 0010 0011 target_link_libraries( 0012 katesnippetsplugin 0013 PRIVATE 0014 KF6::I18n 0015 KF6::NewStuffWidgets 0016 KF6::TextEditor 0017 ) 0018 0019 ki18n_wrap_ui(katesnippetsplugin snippetview.ui editrepository.ui editsnippet.ui) 0020 0021 target_sources( 0022 katesnippetsplugin 0023 PRIVATE 0024 katesnippets.cpp 0025 katesnippetglobal.cpp 0026 snippetview.cpp 0027 snippetstore.cpp 0028 snippetrepository.cpp 0029 snippetcompletionmodel.cpp 0030 snippetcompletionitem.cpp 0031 snippet.cpp 0032 editrepository.cpp 0033 editsnippet.cpp 0034 plugin.qrc 0035 ) 0036 0037 if (BUILD_PCH) 0038 target_precompile_headers(katesnippetsplugin REUSE_FROM katepch) 0039 endif()