mac:sync build directories locations

This commit is contained in:
Richard Barber
2020-02-20 01:56:00 -08:00
parent 9bc078c5bb
commit d21f051f43
2 changed files with 42 additions and 14 deletions

View File

@@ -200,7 +200,11 @@ endif()
if(NOT DEFINED DOCDIR)
if(BUILD_BUNDLE)
set(DOCDIR "${DATADIR}/share/doc")
if(APPLE)
set(DOCDIR "${DATADIR}/doc")
else()
set(DOCDIR "${DATADIR}/share/doc")
endif()
else()
set(DOCDIR "${CMAKE_INSTALL_PREFIX}/share/doc/rawtherapee")
endif()
@@ -208,7 +212,11 @@ endif()
if(NOT DEFINED CREDITSDIR)
if(BUILD_BUNDLE)
set(CREDITSDIR "${DATADIR}")
if(APPLE)
set(CREDITSDIR "${DATADIR}")
else()
set(CREDITSDIR "${DATADIR}")
endif()
else()
set(CREDITSDIR "${CMAKE_INSTALL_PREFIX}/share/doc/rawtherapee")
endif()
@@ -216,7 +224,11 @@ endif()
if(NOT DEFINED LICENCEDIR)
if(BUILD_BUNDLE)
set(LICENCEDIR "${DATADIR}")
if(APPLE)
set(LICENCEDIR "${CREDITSDIR}")
else()
set(LICENCEDIR "${DATADIR}")
endif()
else()
set(LICENCEDIR "${CMAKE_INSTALL_PREFIX}/share/doc/rawtherapee")
endif()
@@ -225,7 +237,11 @@ endif()
if(NOT DEFINED DESKTOPDIR)
if(UNIX)
if(BUILD_BUNDLE)
set(DESKTOPDIR "${DATADIR}/share/applications")
if(APPLE)
set(DESKTOPDIR "${DATADIR}/applications")
else()
set(DESKTOPDIR "${DATADIR}/share/applications")
endif()
else()
set(DESKTOPDIR "${CMAKE_INSTALL_PREFIX}/share/applications")
endif()
@@ -235,7 +251,11 @@ endif()
if(NOT DEFINED ICONSDIR)
if(UNIX)
if(BUILD_BUNDLE)
set(ICONSDIR "${DATADIR}/share/icons")
if(APPLE)
set(ICONSDIR "${DATADIR}/icons")
else()
set(ICONSDIR "${DATADIR}/share/icons")
endif()
else()
set(ICONSDIR "${CMAKE_INSTALL_PREFIX}/share/icons")
endif()
@@ -245,7 +265,11 @@ endif()
if(NOT DEFINED APPDATADIR)
if(UNIX)
if(BUILD_BUNDLE)
set(APPDATADIR "${DATADIR}/share/metainfo")
if(APPLE)
set(APPDATADIR "${DATADIR}/share/metainfo")
else()
set(APPDATADIR "${DATADIR}/share/metainfo")
endif()
else()
set(APPDATADIR "${CMAKE_INSTALL_PREFIX}/share/metainfo")
endif()