Since it would be nice to have a .app build via CMake (for those who don't want to install the full 7 GB of XCode), I'm trying to improve that build.
Some of the few issues so far:
- App Bundle icon isn't applied correctly
- Bundle name is different from the XCode build (openxcom.app instead of OpenXcom.app) -- FIXED
- "common" and "standard" folders must be next to the app bundle like this:
./openxcom.app
./common
./standard
or copied to the ~/Library/Application Support/OpenXcom.
Doesn't happen with the XCode build, which has this structure:
./OpenXcom.app
./OpenXcom.app/Contents/Resources/common
./OpenXcom.app/Contents/Resources/standard
For the first problem I've tried changing cmake/modules/apple.cmake's CPACK_BUNDLE_ICON:
set ( CPACK_BUNDLE_ICON "${CMAKE_SOURCE_DIR}/res/mac/AppIcon.icns")
However it isn't working, any clues here? Am I using $CMAKE_SOURCE_DIR wrong?
For the last issue, no ideas yet. Could it be something with CMake rules?