Changeset View
Changeset View
Standalone View
Standalone View
addons/kate-ctags/CMakeLists.txt
1 | add_definitions(-DTRANSLATION_DOMAIN=\"kate-ctags-plugin\") | | |||
---|---|---|---|---|---|
2 | | ||||
3 | include(ECMQtDeclareLoggingCategory) | 1 | include(ECMQtDeclareLoggingCategory) | ||
4 | 2 | | |||
5 | include_directories( ${CMAKE_CURRENT_BINARY_DIR} ) | | |||
6 | | ||||
7 | set(ctagsplugin_SRC | 3 | set(ctagsplugin_SRC | ||
8 | readtags.c | 4 | readtags.c | ||
9 | tags.cpp | 5 | tags.cpp | ||
10 | ctagskinds.cpp | 6 | ctagskinds.cpp | ||
11 | kate_ctags_view.cpp | 7 | kate_ctags_view.cpp | ||
12 | kate_ctags_plugin.cpp | 8 | kate_ctags_plugin.cpp | ||
9 | plugin.qrc | ||||
13 | ) | 10 | ) | ||
14 | 11 | | |||
15 | ecm_qt_declare_logging_category(ctagsplugin_SRC | 12 | ecm_qt_declare_logging_category( | ||
13 | ctagsplugin_SRC | ||||
16 | HEADER kate_ctags_debug.h | 14 | HEADER kate_ctags_debug.h | ||
17 | IDENTIFIER KTECTAGS | 15 | IDENTIFIER KTECTAGS | ||
18 | CATEGORY_NAME "katectagsplugin" | 16 | CATEGORY_NAME "katectagsplugin" | ||
19 | ) | 17 | ) | ||
20 | 18 | | |||
21 | ki18n_wrap_ui(ctagsplugin_SRC kate_ctags.ui CTagsGlobalConfig.ui) | 19 | ki18n_wrap_ui(ctagsplugin_SRC kate_ctags.ui CTagsGlobalConfig.ui) | ||
22 | 20 | | |||
23 | # resource for ui file and stuff | | |||
24 | qt5_add_resources(ctagsplugin_SRC plugin.qrc) | | |||
25 | | ||||
26 | add_library(katectagsplugin MODULE ${ctagsplugin_SRC}) | 21 | add_library(katectagsplugin MODULE ${ctagsplugin_SRC}) | ||
22 | target_compile_definitions(katectagsplugin PRIVATE TRANSLATION_DOMAIN="kate-ctags-plugin") | ||||
27 | 23 | | |||
28 | kcoreaddons_desktop_to_json (katectagsplugin katectagsplugin.desktop) | 24 | target_link_libraries( | ||
29 | 25 | katectagsplugin | |||
30 | target_link_libraries(katectagsplugin KF5::TextEditor KF5::I18n KF5::IconThemes) | 26 | PRIVATE | ||
27 | KF5::TextEditor | ||||
28 | KF5::I18n | ||||
29 | KF5::IconThemes | ||||
30 | ) | ||||
31 | 31 | | |||
32 | kcoreaddons_desktop_to_json(katectagsplugin katectagsplugin.desktop) | ||||
32 | install(TARGETS katectagsplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor ) | 33 | install(TARGETS katectagsplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor) |