File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1- # Configuration for building godot-cpp only
2- # See `tests/CMakeLists.txt` for example configuration
1+ ########## Configuration for building godot-cpp only ##########
2+ ########## See `tests/CMakeLists.txt` for example configuration ##########
33#
44# Main cmake arguments
55#
2828# cmake . -Bbuild
2929# cmake --build build
3030#
31+ #
3132# Builds template_release version
3233#
3334# cmake -DTARGET=TEMPLATE_RELEASE -Bbuild
3435# cmake --build build
3536#
37+ #
3638# Creates multi-config setup and builds Release version
3739#
3840# cmake -G "Ninja Multi-Config" -Bbuild # For Linux/non-MSVC
3941# OR
4042# cmake -G "Visual Studio 16 2019" -A x64 -Bbuild # For Windows/MSVC
4143# cmake --build build --config Release
4244#
45+ #
4346# Builds web version, using Emscripten toolchain
4447#
4548# cmake --toolchain /usr/lib/emscripten/cmake/Modules/Platform/Emscripten.cmake -Bbuild
5255# cmake --build build
5356#
5457#
55- # TODO:
56- # Test builds for MacOS/IOS
58+ # Builds MacOS version via Xcode
59+ # cmake -G Xcode -Bbuild
60+ # cmake --build build
5761
5862cmake_minimum_required (VERSION 3.13)
5963project (godot-cpp LANGUAGES CXX)
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ list(APPEND GODOT_C_FLAGS
2525 >
2626
2727 $<$<NOT :$<STREQUAL :${MACOS_DEPLOYMENT_TARGET} ,DEFAULT>>:
28- -mmacosx-version -min=${MACOS_DEPLOYMENT_TARGET}
28+ -mmacosx-version -min=${MACOS_DEPLOYMENT_TARGET}
2929 >
3030)
3131
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ add_subdirectory(
1111)
1212
1313# Get Sources
14- file (GLOB_RECURSE SOURCES src/*.c**)
15- file (GLOB_RECURSE HEADERS src/*.h**)
14+ file (GLOB_RECURSE SOURCES CONFIGURE_DEPENDS src/*.c**)
15+ file (GLOB_RECURSE HEADERS CONFIGURE_DEPENDS src/*.h**)
1616
1717get_target_property (LIBRARY_SUFFIX godot-cpp LIBRARY_SUFFIX)
1818
You can’t perform that action at this time.
0 commit comments