SFML community forums
Help => General => Topic started by: Dragnalith on August 10, 2013, 01:52:39 pm
-
I am working on an SFML project driven by CMake: http://github.com/Dragnalith/Nawp
To avoid cross-platform dependency problems I have included SFML in my repo, managed with the subtree merge feature of git. SFML CMakeLists.txt is included in my main CMakeLists.txt with add_subdirectory. When I do the build, everything is built automatically, wonderful!
My problem is on OS X, because of Freetype you need to install SFML (e.g do a make install) to copy the framework on your system, otherwise you have a yld: Library not loaded. This step breaks my seamless build workflow.
I'd like to make my app look for the framework in the path of my project and not in /Library/Framework. How can I do that?
(On Windows, one solution would be to copy the .dll in the same folder as my .exe, but I don't know how it works on OS X)
-
Create a bundle application. More details here http://www.sfml-dev.org/tutorials/2.1/start-osx.php