Installing a Mac OS X app using cmake environment, I want to set and install the icon in the process of installation.
Therefore, I try to set
set( MACOSX_BUNDLE_ICON_FILE ${CMAKE_CURRENT_SOURCE_DIR}/images/myAopImage.icns )
ADD_EXECUTABLE(MYAPP MACOSX_BUNDLE ${MACOSX_BUNDLE_ICON_FILE} ${allSources})
#(I could set it in the source directory to any other path)
However, this does not work, it writes the complete path into the Info.plist, and installs nothing into the Resources directory (the resources dir even does not get created in the app folder which gets installed)
Anyhow, even if I put by hand into the Info.plist the information
<key>CFBundleIconFile</key>
<string>myAppImage.icns</string>
and create the Resources directory by hand, putting into there the icns File,
the icon appears anyhow for the app.
How do I solve this problem? At first to do it by hand maybe, but also within the cmake context?