speed-dreams-code/packaging/OSX/createbaseapp.cmake.in
beaglejoe 9790c04868 WIP for ticket 1047 Automate creation of Base app for MacOS
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7179 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: f992b78bd5e4aae50457fbd9575e917eda8bcf31
Former-commit-id: d215b7d6f3325cd4fa0c1e463c4489978f22b3bf
2020-08-30 04:46:14 +00:00

36 lines
1 KiB
CMake

#==============================================================================
#
# Generated Script file for creating the the base app bundle
# Apple only
#
#==============================================================================
# Create the base.app
message(STATUS "Creating @SD_BASE_BUNDLE_NAME@ bundle...")
file(COPY "@CMAKE_INSTALL_PREFIX@/"
DESTINATION "@SD_BASE_BUNDLE_NAME@"
PATTERN "@SD_DATADIR@/tracks/*" EXCLUDE
PATTERN "@SD_DATADIR@/cars/models/*" EXCLUDE)
file(GLOB SC_CARS
LIST_DIRECTORIES TRUE
"@CMAKE_INSTALL_PREFIX@/@SD_DATADIR@/cars/models/sc-*")
foreach(_CAR ${SC_CARS})
#message(STATUS "_CAR = ${_CAR}")
file(COPY "${_CAR}"
DESTINATION "@SD_BASE_BUNDLE_NAME@/@SD_DATADIR@/cars/models")
endforeach()
file(GLOB SC_TRACKS
LIST_DIRECTORIES TRUE
"@CMAKE_INSTALL_PREFIX@/@SD_DATADIR@/tracks/circuit/espie")
foreach(_TRACK ${SC_TRACKS})
#message(STATUS "_TRACK = ${_TRACK}")
file(COPY "${_TRACK}"
DESTINATION "@SD_BASE_BUNDLE_NAME@/@SD_DATADIR@/tracks/circuit")
endforeach()