As on my previous my post, I got a bundle with SDL.framework embeeded. <div>On OS X, you can either use .framework and .dylib binaries. So, I got to use the BundleUtilities macro. </div><div><br></div><div>If CMake doesn't find the .framework, all works ok: I get 3 libraries (libSDL..) on Content/MacOS folder.</div>
<div>If CMake finds the .framework, it just doesn't know (or it seems) how to handle it. What can I do?</div><div><br></div><div>Here's the CMakeLists.txt: </div><div><br></div><div><div>cmake_minimum_required(VERSION 2.8)</div>
<div><br></div><div>project(openvolt)</div><div><br></div><div>set(APP_NAME OpenVolt)</div><div><br></div><div>include(FindSDL)</div><div>include(FindOpenGL)</div><div><br></div><div>include_directories(${SDL_INCLUDE_DIR})</div>
<div><br></div><div>add_executable(${APP_NAME} MACOSX_BUNDLE main.cpp)</div><div><br></div><div>target_link_libraries(${APP_NAME} ${SDL_LIBRARY} ${OPENGL_LIBRARIES})</div><div><br></div><div>string(REPLACE "-framework Cocoa" "" DIRS ${SDL_LIBRARY})</div>
<div>install(CODE "</div><div> include(BundleUtilities)</div><div> fixup_bundle(\"${openvolt_BINARY_DIR}/${APP_NAME}.app\" \"\" \"${DIRS}\")</div><div>" COMPONENT Runtime)</div><div>
<br></div><div><br></div><div>And here's the output when I do 'make install': </div><div><br></div><div><div>[100%] Built target OpenVolt</div><div>Install the project...</div><div>-- Install configuration: ""</div>
<div>-- fixup_bundle</div><div>-- app='/Users/frarees/openvolt/build/OpenVolt.app'</div><div>-- libs=''</div><div>-- dirs='/Library/Frameworks/SDL.framework'</div><div>-- fixup_bundle: preparing...</div>
<div>-- warning: embedded item does not exist '/Users/frarees/openvolt/build/OpenVolt.app/Contents/Frameworks/SDL.framework/Versions/1.3/SDL'</div><div>-- </div><div>warning: cannot resolve item '@executable_path/../Frameworks/SDL.framework/Versions/1.3/SDL'</div>
<div><br></div><div> possible problems:</div><div> need more directories?</div><div> need to use InstallRequiredSystemLibraries?</div><div> run in install tree instead of build tree?</div><div><br></div><div>-- warning: embedded item does not exist '/Users/frarees/openvolt/build/OpenVolt.app/Contents/Frameworks/SDL.framework/Versions/1.3/SDL'</div>
<div>-- </div><div>warning: cannot resolve item '@executable_path/../Frameworks/SDL.framework/Versions/1.3/SDL'</div><div><br></div><div> possible problems:</div><div> need more directories?</div><div> need to use InstallRequiredSystemLibraries?</div>
<div> run in install tree instead of build tree?</div><div><br></div><div>-- fixup_bundle: copying...</div><div>-- 1/4: *NOT* copying '/Users/frarees/openvolt/build/OpenVolt.app/Contents/MacOS/OpenVolt'</div><div>
-- 2/4: copying '@executable_path/../Frameworks/SDL.framework/Versions/1.3/SDL'</div><div>-- fixup_bundle: fixing...</div><div>-- 3/4: fixing up '/Users/frarees/openvolt/build/OpenVolt.app/Contents/MacOS/OpenVolt'</div>
<div>-- 4/4: fixing up '/Users/frarees/openvolt/build/OpenVolt.app/Contents/Frameworks/SDL.framework/Versions/1.3/SDL'</div><div>-- fixup_bundle: cleaning up...</div><div>-- fixup_bundle: verifying...</div><div>-- ===========================================================================</div>
<div>-- Analyzing app='/Users/frarees/openvolt/build/OpenVolt.app'</div><div>-- bundle='/Users/frarees/openvolt/build/OpenVolt.app'</div><div>-- executable='/Users/frarees/openvolt/build/OpenVolt.app/Contents/MacOS/OpenVolt'</div>
<div>-- valid='1'</div><div>-- executable file 1: /Users/frarees/openvolt/build/OpenVolt.app/Contents/MacOS/OpenVolt</div><div>-- warning: embedded item does not exist '/Users/frarees/openvolt/build/OpenVolt.app/Contents/Frameworks/SDL.framework/Versions/1.3/SDL'</div>
<div>-- </div><div>warning: cannot resolve item '@executable_path/../Frameworks/SDL.framework/Versions/1.3/SDL'</div><div><br></div><div> possible problems:</div><div> need more directories?</div><div> need to use InstallRequiredSystemLibraries?</div>
<div> run in install tree instead of build tree?</div><div><br></div><div>-- verified='1'</div><div>-- info='Verified 1 executable files in '/Users/frarees/openvolt/build/OpenVolt.app''</div><div>
-- </div><div>-- verified='1'</div><div>-- info=''</div><div>-- </div><div>-- fixup_bundle: done</div><div><br></div></div></div>