mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
non-DRY fix for correct copy of resources for OS X bundle
This commit is contained in:
parent
b0ff1029f6
commit
62cf452e3d
1 changed files with 11 additions and 8 deletions
|
@ -44,15 +44,18 @@ add_subdirectory(src/starfield)
|
|||
if (APPLE)
|
||||
# set how the icon shows up in the Info.plist file
|
||||
SET(MACOSX_BUNDLE_ICON_FILE interface.icns)
|
||||
|
||||
# grab the image and audio files
|
||||
FILE(GLOB INTERFACE_RES_DIRS resources/*)
|
||||
set(INTERFACE_RSRCS ${INTERFACE_RES_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/interface.icns)
|
||||
|
||||
|
||||
# set where in the bundle to put the resources file
|
||||
SET_SOURCE_FILES_PROPERTIES(${INTERFACE_RSRCS} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
||||
# include the icns file and resource files in the target
|
||||
SET(INTERFACE_SRCS ${INTERFACE_SRCS} ${INTERFACE_RSRCS})
|
||||
SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_SOURCE_DIR}/interface.icns PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
||||
|
||||
# grab the directories in resources and put them in the right spot in Resources
|
||||
FILE(GLOB INTERFACE_IMAGES resources/images/*)
|
||||
SET_SOURCE_FILES_PROPERTIES(${INTERFACE_IMAGES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources/images)
|
||||
|
||||
FILE(GLOB INTERFACE_SHADERS resources/shaders/*)
|
||||
SET_SOURCE_FILES_PROPERTIES(${INTERFACE_SHADERS} PROPERTIES MACOSX_PACKAGE_LOCATION Resources/shaders)
|
||||
|
||||
SET(INTERFACE_SRCS ${INTERFACE_SRCS} ${INTERFACE_IMAGES} ${INTERFACE_SHADERS} ${CMAKE_CURRENT_SOURCE_DIR}/interface.icns)
|
||||
endif (APPLE)
|
||||
|
||||
find_package(Qt4 REQUIRED QtCore QtGui QtOpenGL)
|
||||
|
|
Loading…
Reference in a new issue