Commit c61769b0 authored by Frederik Gladhorn's avatar Frederik Gladhorn

Move mime icon installation to sensible place in CMakeLists.txt

This would now install the icons if they were actually in the right
place. For now it will just not work since the app icons and the mime
type ones are organized differently.
parent ab16e1d7
......@@ -11,7 +11,6 @@ add_subdirectory( integration )
add_subdirectory( pics/app )
set(krita_SRCS main.cc)
set(kra_SRCS main.cc)
if (NOT APPLE)
file(GLOB ICON_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/pics/app/*-apps-calligrakrita.png")
......@@ -28,6 +27,17 @@ else()
endif()
ecm_add_app_icon(krita_SRCS ICONS ${ICON_SRCS})
ecm_install_icons(ICONS
"${CMAKE_CURRENT_SOURCE_DIR}/pics/mimetypes/16-application-x-krita.png"
"${CMAKE_CURRENT_SOURCE_DIR}/pics/mimetypes/32-application-x-krita.png"
"${CMAKE_CURRENT_SOURCE_DIR}/pics/mimetypes/48-application-x-krita.png"
"${CMAKE_CURRENT_SOURCE_DIR}/pics/mimetypes/128-application-x-krita.png"
"${CMAKE_CURRENT_SOURCE_DIR}/pics/mimetypes/256-application-x-krita.png"
"${CMAKE_CURRENT_SOURCE_DIR}/pics/mimetypes/512-application-x-krita.png"
"${CMAKE_CURRENT_SOURCE_DIR}/pics/mimetypes/1024-application-x-krita.png"
DESTINATION ${ICON_INSTALL_DIR}
)
# separate listing, both used by Krita and KritaSketch
set(krita_QRCS
${CMAKE_SOURCE_DIR}/krita/krita.qrc
......@@ -69,16 +79,6 @@ if(HAVE_KCRASH)
PRIVATE
KF5::Crash
)
set(KRA_SRCS
"${CMAKE_CURRENT_SOURCE_DIR}/pics/mimetypes/16-application-x-krita.png"
"${CMAKE_CURRENT_SOURCE_DIR}/pics/mimetypes/32-application-x-krita.png"
"${CMAKE_CURRENT_SOURCE_DIR}/pics/mimetypes/48-application-x-krita.png"
"${CMAKE_CURRENT_SOURCE_DIR}/pics/mimetypes/128-application-x-krita.png"
"${CMAKE_CURRENT_SOURCE_DIR}/pics/mimetypes/256-application-x-krita.png"
"${CMAKE_CURRENT_SOURCE_DIR}/pics/mimetypes/512-application-x-krita.png"
"${CMAKE_CURRENT_SOURCE_DIR}/pics/mimetypes/1024-application-x-krita.png"
)
ecm_add_app_icon(kra_SRCS ICONS ${KRA_SRCS})
endif()
if (APPLE)
......
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