Changeset View
Changeset View
Standalone View
Standalone View
addons/textfilter/CMakeLists.txt
1 | project(textfilterplugin) | | |||
---|---|---|---|---|---|
2 | add_definitions(-DTRANSLATION_DOMAIN=\"katetextfilter\") | | |||
3 | | ||||
4 | include_directories( ${CMAKE_CURRENT_BINARY_DIR} ) | | |||
5 | | ||||
6 | set(textfilterplugin_PART_SRCS | 1 | set(textfilterplugin_PART_SRCS | ||
7 | plugin_katetextfilter.cpp | 2 | plugin_katetextfilter.cpp | ||
3 | plugin.qrc | ||||
8 | ) | 4 | ) | ||
9 | 5 | | |||
10 | ki18n_wrap_ui(textfilterplugin_PART_SRCS textfilterwidget.ui) | 6 | ki18n_wrap_ui(textfilterplugin_PART_SRCS textfilterwidget.ui) | ||
11 | 7 | | |||
12 | # resource for ui file and stuff | | |||
13 | qt5_add_resources(textfilterplugin_PART_SRCS plugin.qrc) | | |||
14 | | ||||
15 | add_library (textfilterplugin MODULE ${textfilterplugin_PART_SRCS}) | 8 | add_library(textfilterplugin MODULE ${textfilterplugin_PART_SRCS}) | ||
9 | target_compile_definitions(textfilterplugin PRIVATE TRANSLATION_DOMAIN="katetextfilter") | ||||
16 | 10 | | |||
17 | kcoreaddons_desktop_to_json (textfilterplugin textfilterplugin.desktop) | 11 | target_link_libraries( | ||
18 | 12 | textfilterplugin | |||
19 | target_link_libraries(textfilterplugin | 13 | PRIVATE | ||
20 | KF5::TextEditor | 14 | KF5::TextEditor | ||
21 | KF5::IconThemes | 15 | KF5::IconThemes | ||
22 | KF5::I18n | 16 | KF5::I18n | ||
23 | KF5::Service | 17 | KF5::Service | ||
24 | ) | 18 | ) | ||
25 | 19 | | |||
20 | kcoreaddons_desktop_to_json(textfilterplugin textfilterplugin.desktop) | ||||
26 | install(TARGETS textfilterplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor) | 21 | install(TARGETS textfilterplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor) |