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
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
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
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()