简体   繁体   中英

Is it possible to include files in macOS bundle without using Xcode?

So, I've been trying to include shaders inside macOS bundle for a while, and only way I have found, was adding them through Xcode. It would be nice if it would be possible to do something like that but only with CMake:
捆绑示例

Well, It looks like I found a solution:

set(VS_SHADER_NAME "cgui_tri_vertex.vs")
set(VS_SHADER_PATH ${PROJECT_SOURCE_DIR}/resources/${VS_SHADER_NAME})
file(COPY ${VS_SHADER_PATH} DESTINATION "${PROJECT_NAME}.app/Contents/Resources")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM