Deploy ui.rc files via qrc

parent 26b99aeb
......@@ -16,9 +16,11 @@ find_package(KF5 ${KF_MIN_VERSION} REQUIRED
set(kpartloader_SRCS
kpartloader.cpp
)
qt5_add_resources(kpartloader_SRCS
kpartloader.qrc
)
add_executable(kpartloader ${kpartloader_SRCS})
target_link_libraries(kpartloader KF5::Parts)
install(TARGETS kpartloader ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES kpartloaderui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/kpartloader)
<!DOCTYPE RCC>
<RCC version="1.0">
<qresource prefix="/kxmlgui5/kpartloader">
<file>kpartloaderui.rc</file>
</qresource>
</RCC>
......@@ -32,6 +32,10 @@ add_definitions(
set(kuiviewer_SRCS main.cpp kuiviewer.cpp )
qt5_add_resources(kuiviewer_SRCS
kuiviewer.qrc
)
file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/*-apps-kuiviewer.png")
ecm_add_app_icon(kuiviewer_SRCS ICONS ${ICONS_SRCS})
......@@ -46,6 +50,10 @@ install(TARGETS kuiviewer ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
set(kuiviewerpart_PART_SRCS kuiviewer_part.cpp )
qt5_add_resources(kuiviewerpart_PART_SRCS
kuiviewer_part.qrc
)
ecm_qt_declare_logging_category(kuiviewerpart_PART_SRCS
HEADER kuiviewer_part_debug.h
IDENTIFIER KUIVIEWERPART
......@@ -79,8 +87,6 @@ install(TARGETS quithumbnail DESTINATION ${KDE_INSTALL_PLUGINDIR} )
install( PROGRAMS org.kde.kuiviewer.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
install( FILES designerthumbnail.desktop kuiviewer_part.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( FILES kuiviewer_part.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/kuiviewerpart )
install( FILES kuiviewerui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/kuiviewer )
ecm_install_icons(ICONS
16-apps-kuiviewer.png
......
<!DOCTYPE RCC>
<RCC version="1.0">
<qresource prefix="/kxmlgui5/kuiviewer">
<file>kuiviewerui.rc</file>
</qresource>
</RCC>
<!DOCTYPE RCC>
<RCC version="1.0">
<qresource prefix="/kxmlgui5/kuiviewerpart">
<file>kuiviewer_part.rc</file>
</qresource>
</RCC>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment