aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <[email protected]>2015-10-17 18:11:13 +0200
committerChristoph Cullmann <[email protected]>2015-10-17 18:11:13 +0200
commit1bc234a4704aaee67b0143410a328ce109ba896f (patch)
tree5f63a1b995289bf39e07cd9dd402f23b27692bb6
parentdf08e724d8d83d821a2d6ceb0bb41f231dbdd451 (diff)
move ui to resource
-rw-r--r--addons/close-except-like/CMakeLists.txt4
-rw-r--r--addons/close-except-like/plugin.qrc6
2 files changed, 9 insertions, 1 deletions
diff --git a/addons/close-except-like/CMakeLists.txt b/addons/close-except-like/CMakeLists.txt
index 84624bf..e4eea59 100644
--- a/addons/close-except-like/CMakeLists.txt
+++ b/addons/close-except-like/CMakeLists.txt
@@ -17,6 +17,9 @@ set(KATE_CLOSE_EXCEPT_PLUGIN_UI
)
ki18n_wrap_ui(KATE_CLOSE_EXCEPT_PLUGIN_SOURCES ${KATE_CLOSE_EXCEPT_PLUGIN_UI})
+# resource for ui file and stuff
+qt5_add_resources(KATE_CLOSE_EXCEPT_PLUGIN_SOURCES plugin.qrc)
+
add_library(katecloseexceptplugin MODULE ${KATE_CLOSE_EXCEPT_PLUGIN_SOURCES})
target_link_libraries(katecloseexceptplugin
@@ -32,4 +35,3 @@ configure_file(config.h.in config.h)
install(TARGETS katecloseexceptplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor)
kcoreaddons_desktop_to_json(katecloseexceptplugin katecloseexceptplugin.desktop)
-install(FILES ui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}//katecloseexceptplugin)
diff --git a/addons/close-except-like/plugin.qrc b/addons/close-except-like/plugin.qrc
new file mode 100644
index 0000000..5267fe5
--- /dev/null
+++ b/addons/close-except-like/plugin.qrc
@@ -0,0 +1,6 @@
+<!DOCTYPE RCC>
+<RCC version="1.0">
+ <qresource prefix="/kxmlgui5/katecloseexceptplugin">
+ <file>ui.rc</file>
+ </qresource>
+</RCC>