1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2024-11-24 01:40:18 +01:00

Add CMake settings to build universal binary and find SDL in app bundle

This commit is contained in:
Orazio 2023-07-26 12:08:59 +02:00
parent e2f3ae66f8
commit 296afdbde6

View file

@ -19,6 +19,13 @@ if(MINGW)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static")
endif()
if(APPLE)
set(MACOSX_RPATH)
set(CMAKE_BUILD_WITH_INSTALL_RPATH true)
set(CMAKE_INSTALL_RPATH "@executable_path/../Frameworks")
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
endif()
# SDL2main is not needed
set(SDL2_BUILDING_LIBRARY ON)