Re: [cmake-developers] cmake xcode ios Build Phases > New Copy Files Phase?

2015-09-10 Thread Peter List
I added an extra line for Mac OS X. So for iOS, the MACOSX_PACKAGE_LOCATION line adds a "Copy Bundle Resource". For OSX, the "TARGET ALL" line copies the shader folder to the build folder. Linux & Windows will probably do the same thing as OSX, and probably Emscripten too. Android will

[cmake-developers] cmake xcode ios Build Phases > New Copy Files Phase?

2015-09-09 Thread Peter List
I use cmake to generate an iOS xcode project for "ios-cmake-master". Then I have to can manually add my "shaders" folder to xcode > cmd+4 > Build Phases > + New Copy Files Phase > Destination = Resources, + to add my "shaders" folder. This allows me to have XCode copy my GLSL "shaders" folder

Re: [cmake-developers] cmake xcode ios Build Phases > New Copy Files Phase?

2015-09-09 Thread Peter List
Actually I guess I found the answer here... https://stackoverflow.com/questions/30430968/add-xcode-build-phase-via-cmake On Thu, Sep 10, 2015 at 1:09 AM, Peter List wrote: > I use cmake to generate an iOS xcode project for "ios-cmake-master". Then > I have to can manually

Re: [cmake-developers] cmake xcode ios Build Phases > New Copy Files Phase?

2015-09-09 Thread Peter List
In case it helps someone else, here's what I have: # after link, add exe file(GLOB SRC_LIST shaders/* main.cpp) if(${IsIOS}) set_source_files_properties(shaders PROPERTIES MACOSX_PACKAGE_LOCATION Resources) add_executable(${PROJECT_NAME} MACOSX_BUNDLE ${SRC_LIST} shaders) else()