summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/XcodeProject-Embed/EmbedResources.cmake
blob: 0638037aa8e0fcaf685914ab66fd64838df65c4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
add_executable(app MACOSX_BUNDLE main.m)

set(EMBED_RESOURCES_FOLDER ${CMAKE_BINARY_DIR}/runtime/shaders)

# ensure embed resources folder exists
if (NOT (IS_DIRECTORY ${EMBED_RESOURCES_FOLDER}))
    file(MAKE_DIRECTORY ${EMBED_RESOURCES_FOLDER})
endif()

set_target_properties(app PROPERTIES
    XCODE_EMBED_RESOURCES_PATH ${EMBED_RESOURCES_FOLDER}
)

set_target_properties(app PROPERTIES
  XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED "NO"
  XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY ""
  MACOSX_BUNDLE_GUI_IDENTIFIER "com.example.app"
)