Re: [CMake] OS X, embedding Frameworks and generator problems

2010-03-05 Thread Francisco Requena
So how do I embeed a framework on an OS X bundle? Jjgod Jiang has the same problem here: http://www.cmake.org/pipermail/cmake/2009-September/031713.html 2010/3/5 David Cole david.c...@kitware.com SDL_library is not a source file, so don't call: set_source_files_properties on it... That

Re: [CMake] OS X, embedding Frameworks and generator problems

2010-03-05 Thread Michael Wild
http://www.cmake.org/Wiki/BundleUtilitiesExample Michael On 5. Mar, 2010, at 9:40 , Francisco Requena wrote: So how do I embeed a framework on an OS X bundle? Jjgod Jiang has the same problem here: http://www.cmake.org/pipermail/cmake/2009-September/031713.html 2010/3/5 David Cole

Re: [CMake] OS X, embedding Frameworks and generator problems

2010-03-05 Thread Werner Smekal
For the SDL Framework it is sufficient to just copy it during the installation process, e.g. I do # copy SDL frameworks into app bundle for Mac OS X if(APPLE) INSTALL(DIRECTORY /Users/smekal/Library/Frameworks/SDL.framework DESTINATION

Re: [CMake] OS X, embedding Frameworks and generator problems

2010-03-05 Thread Francisco Requena
However, I can't get it working. My aim is to make an standalone .app bundle, distributable with SDL embedded. How should I use BundleUtilities to get rid of this? Thanks. 2010/3/5 Michael Wild them...@gmail.com http://www.cmake.org/Wiki/BundleUtilitiesExample Michael On 5. Mar, 2010, at

Re: [CMake] OS X, embedding Frameworks and generator problems

2010-03-05 Thread Michael Wild
As Werner Smekal already mentioned (http://www.cmake.org/pipermail/cmake/2010-March/035636.html), for SDL it is apparently not necessary to use BundleUtilities. Have you tried this? Michael On 5. Mar, 2010, at 12:50 , Francisco Requena wrote: However, I can't get it working. My aim is to

Re: [CMake] OS X, embedding Frameworks and generator problems

2010-03-05 Thread Francisco Requena
Yes, I tried, but without success. My resulting file is: cmake_minimum_required(VERSION 2.8) project(openvolt) set(APP_NAME OpenVolt) include(FindSDL) string(REPLACE -framework Cocoa SDL_LIBRARY ${SDL_LIBRARY}) include(FindOpenGL) include(BundleUtilities)

Re: [CMake] OS X, embedding Frameworks and generator problems

2010-03-05 Thread Michael Wild
Did you run make install? Michael On 5. Mar, 2010, at 12:58 , Francisco Requena wrote: Yes, I tried, but without success. My resulting file is: cmake_minimum_required(VERSION 2.8) project(openvolt) set(APP_NAME OpenVolt) include(FindSDL) string(REPLACE -framework Cocoa

Re: [CMake] OS X, embedding Frameworks and generator problems

2010-03-05 Thread Werner Smekal
Hi Francisco, for the SDL Framework (downloaded from libsdl.org) you don't need the bundleUtilities, so don't use it (in fact it doesn't work as you also found out). If you just don't copy anything, then the app should just work (assumed, that you SDL Framework is either in /Libraries/Framework

[CMake] OS X, embedding Frameworks and generator problems

2010-03-04 Thread Francisco Requena
Hi, I'm trying to develop a simple application using SDL on OS X. Here's my CMakeLists.txt: cmake_minimum_required(VERSION 2.8) project(newapp) include(FindSDL) include(FindOpenGL) include_directories(${SDL_INCLUDE_DIR}) string(REPLACE -framework Cocoa SDL_LIBRARY ${SDL_LIBRARY})

Re: [CMake] OS X, embedding Frameworks and generator problems

2010-03-04 Thread David Cole
SDL_library is not a source file, so don't call: set_source_files_properties on it... That should eliminate the spurious content copy attempt... On Thu, Mar 4, 2010 at 6:17 PM, Francisco Requena the@gmail.com wrote: Hi, I'm trying to develop a simple application using SDL on OS X.