Hi there!
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:

if (APPLE)
set(ADDITIONAL_INCLUDES ${FRAMEWORKS})
set_source_files_properties(${FRAMEWORKS} PROPERTIES MACOSX_PACKAGE_LOCATION
Frameworks)
endif()

add_executable(TargetName MACOSX_BUNDLE ${SOURCES} ${FRAMEWORKS})

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.

So the question is: is there a better way to do this?

-- 
Life is too short for dial-up.
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to