Hi there!<br>I'm getting started with CMake and I'm using it to generate XCode files for the Mac. One thing I had trouble with is embedding private frameworks in the bundle such that it lives in the Contents/Frameworks subdirectory. I tried doing something like this:<br>
<br>if (APPLE)<br>set(ADDITIONAL_INCLUDES ${FRAMEWORKS})<br>set_source_files_properties(${FRAMEWORKS} PROPERTIES MACOSX_PACKAGE_LOCATION Frameworks)<br>endif()<br><br>add_executable(TargetName MACOSX_BUNDLE ${SOURCES} ${FRAMEWORKS})<br>
<br>and well... it DOES put the frameworks in the Frameworks subdir (and it works!), but the resulting XCode project file looks unelegant: No "Frameworks" group and the linked frameworks are displayed as sources without the nice toolbox icon.<br>
<br>So the question is: is there a better way to do this?<br clear="all"><br>-- <br>Life is too short for dial-up.<br>