mac:config.h.in use macos extention

This commit is contained in:
Richard Barber
2020-02-20 11:43:11 -08:00
parent 4e4faafb08
commit 4dbbc40539
4 changed files with 27 additions and 17 deletions

View File

@@ -150,15 +150,20 @@ endif()
if(NOT DEFINED BUNDLE_BASE_INSTALL_DIR)
if(APPLE)
set(BUNDLE_BASE_INSTALL_DIR "${CMAKE_BUILD_TYPE}")
set(BUNDLE_BASE_INSTALL_DIR "${CMAKE_BUILD_TYPE}/MacOS")
else()
set(BUNDLE_BASE_INSTALL_DIR "${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}")
endif()
endif()
if(BUILD_BUNDLE)
set(BINDIR .)
set(CMAKE_INSTALL_PREFIX "${BUNDLE_BASE_INSTALL_DIR}")
if(APPLE)
set(BINDIR "${BUNDLE_BASE_INSTALL_DIR}")
set(CMAKE_INSTALL_PREFIX ".")
else()
set(BINDIR .)
set(CMAKE_INSTALL_PREFIX "${BUNDLE_BASE_INSTALL_DIR}")
endif()
endif()
if(NOT DEFINED BINDIR)
@@ -168,7 +173,7 @@ endif()
if(NOT DEFINED DATADIR)
if(BUILD_BUNDLE)
if(APPLE)
set(DATADIR "../Resources/share")
set(DATADIR "${CMAKE_BUILD_TYPE}/Resources/share")
else()
set(DATADIR .)
endif()
@@ -180,7 +185,7 @@ endif()
if(NOT DEFINED LIBDIR)
if(BUILD_BUNDLE)
if(APPLE)
set(LIBDIR "../Frameworks")
set(LIBDIR "${CMAKE_BUILD_TYPE}/Frameworks")
else()
set(LIBDIR .)
endif()