summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-10-31 22:33:51 +0100
committerMontel Laurent <[email protected]>2017-10-31 22:33:51 +0100
commitffe7f05beadfa1cd05e1df6e5286b0a4cfc76bdc (patch)
tree2a294df4029fcf592159217eb13fba9304dba89a
parentfc6f516a63bda8cd193e7b3e64d0e14062c6a319 (diff)
Add rc file in qrc
-rw-r--r--CMakeLists.txt4
-rw-r--r--kmines.qrc5
2 files changed, 6 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8eaa742..6bf186f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -56,7 +56,7 @@ set(kmines_SRCS
scene.cpp
main.cpp
)
-
+qt5_add_resources(kmines_SRCS kmines.qrc)
ki18n_wrap_ui(kmines_SRCS customgame.ui generalopts.ui)
kconfig_add_kcfg_files(kmines_SRCS settings.kcfgc )
file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/data/*-apps-kmines.png")
@@ -76,6 +76,4 @@ install(TARGETS kmines ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
########### install files ###############
-install(FILES kminesui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/kmines)
-
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
diff --git a/kmines.qrc b/kmines.qrc
new file mode 100644
index 0000000..0396daa
--- /dev/null
+++ b/kmines.qrc
@@ -0,0 +1,5 @@
+<RCC>
+<qresource prefix="/kxmlgui5/kmines">
+<file>kminesui.rc</file>
+</qresource>
+</RCC>