mac:config.h.in use macos extention
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user