2010-10-30 19:37:00 +00:00
|
|
|
# mac bundling must happen at end, so all binaries installed
|
|
|
|
# and install_names can be adjusted
|
2020-11-11 11:15:34 +01:00
|
|
|
if (APPLE AND QGIS_MACAPP_BUNDLE GREATER -1)
|
2010-10-30 19:37:00 +00:00
|
|
|
# for included scripts that set policies (ie OS X bundling)
|
2020-11-11 11:15:34 +01:00
|
|
|
install (CODE "cmake_policy(SET CMP0011 NEW)")
|
|
|
|
configure_file (cmake/0vars.cmake.in 0vars.cmake @ONLY)
|
|
|
|
configure_file (cmake/0qgis.cmake.in 0qgis.cmake @ONLY)
|
|
|
|
install (SCRIPT ${CMAKE_BINARY_DIR}/mac/0qgis.cmake)
|
|
|
|
if (QGIS_MACAPP_BUNDLE GREATER 0)
|
2010-10-30 19:37:00 +00:00
|
|
|
# start with Qt
|
2020-11-11 11:15:34 +01:00
|
|
|
configure_file (cmake/1qt.cmake.in 1qt.cmake @ONLY)
|
|
|
|
install (SCRIPT ${CMAKE_BINARY_DIR}/mac/1qt.cmake)
|
|
|
|
if (QGIS_MACAPP_BUNDLE GREATER 1)
|
2010-10-30 19:37:00 +00:00
|
|
|
# next - libs
|
2020-11-11 11:15:34 +01:00
|
|
|
configure_file (cmake/2lib.cmake.in 2lib.cmake @ONLY)
|
|
|
|
install (SCRIPT ${CMAKE_BINARY_DIR}/mac/2lib.cmake)
|
|
|
|
if (QGIS_MACAPP_BUNDLE GREATER 2)
|
2010-10-30 19:37:00 +00:00
|
|
|
# last - frameworks
|
2020-11-11 11:15:34 +01:00
|
|
|
configure_file (cmake/3fw.cmake.in 3fw.cmake @ONLY)
|
|
|
|
install (SCRIPT ${CMAKE_BINARY_DIR}/mac/3fw.cmake)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif()
|
2010-10-30 19:37:00 +00:00
|
|
|
# user bundling
|
2020-11-11 11:15:34 +01:00
|
|
|
if (QGIS_MACAPP_BUNDLE_USER)
|
|
|
|
configure_file (${QGIS_MACAPP_BUNDLE_USER} 4user.cmake @ONLY)
|
|
|
|
install (SCRIPT ${CMAKE_BINARY_DIR}/mac/4user.cmake)
|
|
|
|
endif()
|
2010-10-30 19:37:00 +00:00
|
|
|
# tickle app bundle
|
2020-11-11 11:15:34 +01:00
|
|
|
install (CODE "execute_process(COMMAND touch \"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/../../.\")")
|
|
|
|
endif()
|