Skip to content

Commit 47b6eec

Browse files
author
Vano
committed
Xcode example
1 parent fa4a391 commit 47b6eec

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

CMakeLists.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
#
@@ -28,18 +28,21 @@
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
@@ -52,8 +55,9 @@
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

5862
cmake_minimum_required(VERSION 3.13)
5963
project(godot-cpp LANGUAGES CXX)

cmake/macos.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

1717
get_target_property(LIBRARY_SUFFIX godot-cpp LIBRARY_SUFFIX)
1818

0 commit comments

Comments
 (0)