Changeset View
Changeset View
Standalone View
Standalone View
addons/xmlcheck/CMakeLists.txt
1 | project(katexmlcheckplugin) # what is this? | | |||
---|---|---|---|---|---|
2 | add_definitions(-DTRANSLATION_DOMAIN=\"katexmlcheck\") | | |||
3 | | ||||
4 | # Maybe remove these later // I just copied this from xmltools example | | |||
5 | remove_definitions(-DQT_NO_CAST_TO_ASCII) | 1 | remove_definitions(-DQT_NO_CAST_TO_ASCII) | ||
6 | remove_definitions(-DQT_NO_CAST_FROM_ASCII) | 2 | remove_definitions(-DQT_NO_CAST_FROM_ASCII) | ||
7 | remove_definitions(-DQT_NO_URL_CAST_FROM_STRING) | 3 | remove_definitions(-DQT_NO_URL_CAST_FROM_STRING) | ||
8 | remove_definitions(-DQT_NO_CAST_FROM_BYTEARRAY) | 4 | remove_definitions(-DQT_NO_CAST_FROM_BYTEARRAY) | ||
9 | 5 | | |||
10 | | ||||
11 | set(katexmlcheckplugin_PART_SRCS | | |||
12 | plugin_katexmlcheck.cpp | | |||
13 | ) | | |||
14 | | ||||
15 | # resource for ui file and stuff | | |||
16 | qt5_add_resources(katexmlcheckplugin_PART_SRCS plugin.qrc) | | |||
17 | | ||||
18 | add_library(katexmlcheckplugin MODULE ${katexmlcheckplugin_PART_SRCS}) | 6 | add_library(katexmlcheckplugin MODULE ${katexmlcheckplugin_PART_SRCS}) | ||
19 | target_link_libraries(katexmlcheckplugin | 7 | target_compile_definitions(katexmlcheckplugin PRIVATE TRANSLATION_DOMAIN="katexmlcheck") | ||
8 | | ||||
9 | target_link_libraries( | ||||
10 | katexmlcheckplugin | ||||
11 | PRIVATE | ||||
20 | KF5::TextEditor | 12 | KF5::TextEditor | ||
21 | KF5::Parts | 13 | KF5::Parts | ||
22 | KF5::IconThemes | 14 | KF5::IconThemes | ||
Context not available. | |||||
24 | KF5::Service | 16 | KF5::Service | ||
25 | ) | 17 | ) | ||
26 | 18 | | |||
27 | # this did not changed | 19 | target_sources( | ||
28 | install(TARGETS katexmlcheckplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor ) | 20 | katexmlcheckplugin | ||
21 | PRIVATE | ||||
22 | plugin_katexmlcheck.cpp | ||||
23 | plugin.qrc | ||||
24 | ) | ||||
29 | 25 | | |||
30 | # It is to generate json | 26 | kcoreaddons_desktop_to_json(katexmlcheckplugin katexmlcheck.desktop) | ||
31 | kcoreaddons_desktop_to_json (katexmlcheckplugin katexmlcheck.desktop) | 27 | install(TARGETS katexmlcheckplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor) | ||
Context not available. |