Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Qt6: use the kde install dir variables
Halla Rempt5f1bbd1736af
diff --git a/krita/data/profiles/CMakeLists.txt b/krita/data/profiles/CMakeLists.txtindex 559359faf9..30637eadd9 100644--- a/krita/data/profiles/CMakeLists.txt+++ b/krita/data/profiles/CMakeLists.txt@@ -7,4 +7,4 @@ install(FILEScmyk.icmkrita25_lcms-builtin-sRGB_g100-truegamma.iccITUR_2100_PQ_FULL.ICC- DESTINATION ${SHARE_INSTALL_PREFIX}/color/icc/krita)+ DESTINATION ${KDE_INSTALL_DATADIR}/color/icc/krita)diff --git a/krita/data/profiles/elles-icc-profiles/CMakeLists.txt b/krita/data/profiles/elles-icc-profiles/CMakeLists.txtindex e16ffcf0ec..ba1b8880b8 100644--- a/krita/data/profiles/elles-icc-profiles/CMakeLists.txt+++ b/krita/data/profiles/elles-icc-profiles/CMakeLists.txt@@ -27,4 +27,4 @@ install(FILESLab-D50-Identity-elle-V2.iccLab-D50-Identity-elle-V4.iccXYZ-D50-Identity-elle-V4.icc-DESTINATION ${SHARE_INSTALL_PREFIX}/color/icc/krita)+DESTINATION ${KDE_INSTALL_DATADIR}/color/icc/krita)diff --git a/krita/data/profiles/ycbcr-icc-profiles/CMakeLists.txt b/krita/data/profiles/ycbcr-icc-profiles/CMakeLists.txtindex dd37d4c153..3112f2d2cc 100644--- a/krita/data/profiles/ycbcr-icc-profiles/CMakeLists.txt+++ b/krita/data/profiles/ycbcr-icc-profiles/CMakeLists.txt@@ -8,4 +8,4 @@ install(FILESbt709-6_bt1886_ycbcr_v4.iccbt709-6_ycbcr_v2.iccbt709-6_ycbcr_v4.icc-DESTINATION ${SHARE_INSTALL_PREFIX}/color/icc/krita)+DESTINATION ${KDE_INSTALL_DATADIR}/color/icc/krita)diff --git a/krita/integration/CMakeLists.txt b/krita/integration/CMakeLists.txtindex db0000836e..00bcabb2e9 100644--- a/krita/integration/CMakeLists.txt+++ b/krita/integration/CMakeLists.txt@@ -7,10 +7,10 @@ endif()add_custom_target( kritaintegration ALL xcodebuild -project "${CMAKE_CURRENT_SOURCE_DIR}/integration.xcodeproj" ${XCODEBUILD_ARCHS} -alltargets -configuration Release COMMENT build all macOS plugins )-install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Build/Release/kritaquicklook.qlgenerator DESTINATION ${PLUGIN_INSTALL_DIR})+install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Build/Release/kritaquicklook.qlgenerator DESTINATION ${KDE_INSTALL_PLUGINDIR})-install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Build/Release/kritaspotlight.mdimporter DESTINATION ${PLUGIN_INSTALL_DIR})+install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Build/Release/kritaspotlight.mdimporter DESTINATION ${KDE_INSTALL_PLUGINDIR})# TODO fix and reenable - https://bugs.kde.org/show_bug.cgi?id=430553-# install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Build/Release/kritaquicklookng.appex DESTINATION ${PLUGIN_INSTALL_DIR})+# install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Build/Release/kritaquicklookng.appex DESTINATION ${KDE_INSTALL_PLUGINDIR})endif(APPLE)diff --git a/krita/pics/branding/Beta/CMakeLists.txt b/krita/pics/branding/Beta/CMakeLists.txtindex a03ad1a37f..3b6cc1a912 100644--- a/krita/pics/branding/Beta/CMakeLists.txt+++ b/krita/pics/branding/Beta/CMakeLists.txt@@ -11,4 +11,4 @@ ICONS64-apps-krita.pngsc-apps-krita.svgzDESTINATION- ${ICON_INSTALL_DIR} )+ ${KDE_INSTALL_ICONDIR} )diff --git a/krita/pics/branding/Next/CMakeLists.txt b/krita/pics/branding/Next/CMakeLists.txtindex a03ad1a37f..3b6cc1a912 100644--- a/krita/pics/branding/Next/CMakeLists.txt+++ b/krita/pics/branding/Next/CMakeLists.txt@@ -11,4 +11,4 @@ ICONS64-apps-krita.pngsc-apps-krita.svgzDESTINATION- ${ICON_INSTALL_DIR} )+ ${KDE_INSTALL_ICONDIR} )diff --git a/krita/pics/branding/Plus/CMakeLists.txt b/krita/pics/branding/Plus/CMakeLists.txtindex a03ad1a37f..3b6cc1a912 100644--- a/krita/pics/branding/Plus/CMakeLists.txt+++ b/krita/pics/branding/Plus/CMakeLists.txt@@ -11,4 +11,4 @@ ICONS64-apps-krita.pngsc-apps-krita.svgzDESTINATION- ${ICON_INSTALL_DIR} )+ ${KDE_INSTALL_ICONDIR} )diff --git a/krita/pics/branding/default/CMakeLists.txt b/krita/pics/branding/default/CMakeLists.txtindex a03ad1a37f..3b6cc1a912 100644--- a/krita/pics/branding/default/CMakeLists.txt+++ b/krita/pics/branding/default/CMakeLists.txt@@ -11,4 +11,4 @@ ICONS64-apps-krita.pngsc-apps-krita.svgzDESTINATION- ${ICON_INSTALL_DIR} )+ ${KDE_INSTALL_ICONDIR} )