summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-10-13 08:54:30 +0200
committerMontel Laurent <[email protected]>2015-10-13 08:54:30 +0200
commit0f48a70f8f0e991605168facf27ee55768c0fc62 (patch)
tree966227b852dea9ad39aaa28e8e26ba3337cdd52d
parent05c1541d3d893a235f94e58ab402030b14a31ad5 (diff)
Use qresource
-rw-r--r--kleopatra/CMakeLists.txt4
-rw-r--r--kleopatra/kleopatra.qrc7
2 files changed, 9 insertions, 2 deletions
diff --git a/kleopatra/CMakeLists.txt b/kleopatra/CMakeLists.txt
index 47328d4..16bbd28 100644
--- a/kleopatra/CMakeLists.txt
+++ b/kleopatra/CMakeLists.txt
@@ -342,6 +342,8 @@ set(_kleopatra_mainwindow_SRCS mainwindow_desktop.cpp)
file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/icons/*-apps-kleopatra.png")
ecm_add_app_icon(_kleopatra_mainwindow_SRCS ICONS ${ICONS_SRCS})
+qt5_add_resources(_kleopatra_SRCS kleopatra.qrc)
+
add_executable(kleopatra_bin ${_kleopatra_SRCS} ${_kleopatra_mainwindow_SRCS} ${_kleopatra_uiserver_SRCS} ${_kleopatra_libkdepim_SRCS})
set_target_properties(kleopatra_bin PROPERTIES OUTPUT_NAME kleopatra)
@@ -379,6 +381,4 @@ install(
DESTINATION ${KDE_INSTALL_KSERVICES5DIR}
)
-install(FILES kleopatra.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/kleopatra)
-
add_subdirectory(icons)
diff --git a/kleopatra/kleopatra.qrc b/kleopatra/kleopatra.qrc
new file mode 100644
index 0000000..33e4401
--- /dev/null
+++ b/kleopatra/kleopatra.qrc
@@ -0,0 +1,7 @@
+<!DOCTYPE RCC>
+<RCC version="1.0">
+ <qresource prefix="/kxmlgui5/kleopatra">
+ <file>kleopatra.rc</file>
+ </qresource>
+</RCC>
+