Changeset View
Changeset View
Standalone View
Standalone View
addons/openheader/CMakeLists.txt
1 | project (kateopenheader) | 1 | add_library(kateopenheaderplugin MODULE "") | ||
---|---|---|---|---|---|
2 | add_definitions(-DTRANSLATION_DOMAIN=\"kateopenheader\") | 2 | target_compile_definitions(kateopenheaderplugin PRIVATE TRANSLATION_DOMAIN="kateopenheader") | ||
3 | 3 | | |||
4 | ########### next target ############### | 4 | target_link_libraries( | ||
5 | set(kateopenheaderplugin_PART_SRCS plugin_kateopenheader.cpp ) | 5 | kateopenheaderplugin | ||
6 | 6 | PRIVATE | |||
7 | # resource for ui file and stuff | | |||
8 | qt5_add_resources(kateopenheaderplugin_PART_SRCS plugin.qrc) | | |||
9 | | ||||
10 | add_library(kateopenheaderplugin MODULE ${kateopenheaderplugin_PART_SRCS}) | | |||
11 | kcoreaddons_desktop_to_json (kateopenheaderplugin kateopenheaderplugin.desktop) | | |||
12 | target_link_libraries(kateopenheaderplugin | | |||
13 | KF5::TextEditor | 7 | KF5::TextEditor | ||
14 | KF5::I18n | 8 | KF5::I18n | ||
15 | KF5::Parts) | 9 | KF5::Parts | ||
10 | ) | ||||
16 | 11 | | |||
12 | target_sources( | ||||
13 | kateopenheaderplugin | ||||
14 | PRIVATE | ||||
15 | plugin_kateopenheader.cpp | ||||
16 | plugin.qrc | ||||
17 | ) | ||||
18 | | ||||
19 | kcoreaddons_desktop_to_json(kateopenheaderplugin kateopenheaderplugin.desktop) | ||||
17 | install(TARGETS kateopenheaderplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor ) | 20 | install(TARGETS kateopenheaderplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor) |