Skip to content

armgit / krita

Public Imported from GitHub
0

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.txt
index 559359faf9..30637eadd9 100644
--- a/krita/data/profiles/CMakeLists.txt
+++ b/krita/data/profiles/CMakeLists.txt
@@ -7,4 +7,4 @@ install(FILES
cmyk.icm
krita25_lcms-builtin-sRGB_g100-truegamma.icc
ITUR_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.txt
index 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(FILES
Lab-D50-Identity-elle-V2.icc
Lab-D50-Identity-elle-V4.icc
XYZ-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.txt
index 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(FILES
bt709-6_bt1886_ycbcr_v4.icc
bt709-6_ycbcr_v2.icc
bt709-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.txt
index 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.txt
index a03ad1a37f..3b6cc1a912 100644
--- a/krita/pics/branding/Beta/CMakeLists.txt
+++ b/krita/pics/branding/Beta/CMakeLists.txt
@@ -11,4 +11,4 @@ ICONS
64-apps-krita.png
sc-apps-krita.svgz
DESTINATION
- ${ICON_INSTALL_DIR} )
+ ${KDE_INSTALL_ICONDIR} )
diff --git a/krita/pics/branding/Next/CMakeLists.txt b/krita/pics/branding/Next/CMakeLists.txt
index a03ad1a37f..3b6cc1a912 100644
--- a/krita/pics/branding/Next/CMakeLists.txt
+++ b/krita/pics/branding/Next/CMakeLists.txt
@@ -11,4 +11,4 @@ ICONS
64-apps-krita.png
sc-apps-krita.svgz
DESTINATION
- ${ICON_INSTALL_DIR} )
+ ${KDE_INSTALL_ICONDIR} )
diff --git a/krita/pics/branding/Plus/CMakeLists.txt b/krita/pics/branding/Plus/CMakeLists.txt
index a03ad1a37f..3b6cc1a912 100644
--- a/krita/pics/branding/Plus/CMakeLists.txt
+++ b/krita/pics/branding/Plus/CMakeLists.txt
@@ -11,4 +11,4 @@ ICONS
64-apps-krita.png
sc-apps-krita.svgz
DESTINATION
- ${ICON_INSTALL_DIR} )
+ ${KDE_INSTALL_ICONDIR} )
diff --git a/krita/pics/branding/default/CMakeLists.txt b/krita/pics/branding/default/CMakeLists.txt
index a03ad1a37f..3b6cc1a912 100644
--- a/krita/pics/branding/default/CMakeLists.txt
+++ b/krita/pics/branding/default/CMakeLists.txt
@@ -11,4 +11,4 @@ ICONS
64-apps-krita.png
sc-apps-krita.svgz
DESTINATION
- ${ICON_INSTALL_DIR} )
+ ${KDE_INSTALL_ICONDIR} )