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:
parent
e2f3ae66f8
commit
296afdbde6
1 changed files with 7 additions and 0 deletions
|
@ -19,6 +19,13 @@ if(MINGW)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static")
|
||||||
endif()
|
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
|
# SDL2main is not needed
|
||||||
set(SDL2_BUILDING_LIBRARY ON)
|
set(SDL2_BUILDING_LIBRARY ON)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue