Skip to content

Commit

Permalink
fix: iOS builds, generate only necessary schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski committed Aug 27, 2024
1 parent b6a7c6f commit 4683e94
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Apps/Playground/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ if(APPLE)
PRIVATE ${JAVASCRIPTCORE_LIBRARY}
PRIVATE NativeCamera)
set(RESOURCE_FILES ${STORYBOARD})

elseif(UNIX)
set(SOURCES
${SOURCES}
Expand Down Expand Up @@ -173,6 +174,8 @@ if(APPLE)
FOLDER "Playground")
endif()
set_property(TARGET Playground PROPERTY UNITY_BUILD false)
set_property(TARGET Playground PROPERTY XCODE_GENERATE_SCHEME YES)
set_property(TARGET Playground PROPERTY XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED YES)
endif()

if(WINDOWS_STORE)
Expand Down Expand Up @@ -205,3 +208,4 @@ source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${REFERENCE_IMAGES})
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${SCRIPTS})
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${SOURCES})
set_property(DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT Playground)

3 changes: 2 additions & 1 deletion Apps/UnitTests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,5 @@ endforeach()

set_property(TARGET UnitTests PROPERTY FOLDER Apps)
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${SOURCES} ${SCRIPTS})
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/../node_modules PREFIX node_modules FILES ${EXTERNAL_SCRIPTS})
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/../node_modules PREFIX node_modules FILES ${EXTERNAL_SCRIPTS})
set_property(TARGET UnitTests PROPERTY XCODE_GENERATE_SCHEME YES)
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ FetchContent_Declare(AndroidExtensions
GIT_TAG 7d88a601fda9892791e7b4e994e375e049615688)
FetchContent_Declare(arcana.cpp
GIT_REPOSITORY https://github.com/microsoft/arcana.cpp.git
GIT_TAG f2757396e80bc4169f2ddb938ce25367a98ffdd0)
GIT_TAG 1a8a5d6e95413ed14b38a6ac9419048f9a9c8009)
FetchContent_Declare(arcore-android-sdk
GIT_REPOSITORY https://github.com/google-ar/arcore-android-sdk.git
GIT_TAG 98cb803de5482fb2b36effe8be3b5a0d3b726976)
FetchContent_Declare(base-n
GIT_REPOSITORY https://github.com/azawadzki/base-n.git
GIT_TAG 7573e77c0b9b0e8a5fb63d96dbde212c921993b4)
FetchContent_Declare(bgfx.cmake
GIT_REPOSITORY https://github.com/okwasniewski/bgfx.cmake.git
GIT_TAG 4fb523d2e36d)
GIT_REPOSITORY https://github.com/BabylonJS/bgfx.cmake.git
GIT_TAG 17e2f84510dbb69c87a02b08fb11cecb2c4afc9b)
FetchContent_Declare(CMakeExtensions
GIT_REPOSITORY https://github.com/BabylonJS/CMakeExtensions.git
GIT_TAG ea28b7689530bfdc4905806f27ecf7e8ed4b5419)
Expand Down

0 comments on commit 4683e94

Please # to comment.