Commit Graph

14 Commits

Author SHA1 Message Date
Anonymous Maarten
6c495a92f0 cmake: use compatible interface properties to disallow linking to a different version of SDL 2023-03-03 23:41:18 +01:00
Anonymous Maarten
e6c4db8160 The SDL2::SDL2 target in SDL2.framework needs to see the SDL2 include folder
SDL.h includes other files through SDL2/SDL_xxx.h
2022-11-15 19:22:47 +01:00
Anonymous Maarten
cbb1cf0c93 cmake+xcode: only create SDL2::SDL2main target when it does not exist again 2022-10-04 21:15:09 +02:00
Anonymous Maarten
dc2ef31c29 cmake: create SDL2::SDL2main target in Apple framework official release 2022-08-24 06:20:28 -07:00
Pierre Wendling
1963cccce1
CMake: Fix XCode CMake config file. (#5787)
As mentionned in libsdl-org/SDL_net#48 and libsdl-org/SDL_ttf#213:
- Options needs to use `SHELL:` to avoid aggressive option de-duplication
- Framework path needs to be quoted to support paths with spaces.
2022-06-12 15:48:57 +02:00
Anonymous Maarten
96e3733a18 cmake: make Xcode's sdl2-config.cmake compatible with the one from autotools 2022-06-03 12:41:36 -07:00
Anonymous Maarten
3c3c02518c Add Compatible Interface Properties to VisualC and Xcode SDL2 config file 2022-05-31 00:10:55 +02:00
Sam Lantinga
423c7ef856 Don't set SDL2_LIBRARY, we need the Framework configuration on Apple platforms 2022-05-31 00:10:55 +02:00
Sam Lantinga
37ef6a765d Use a full path for the framework header include path 2022-05-31 00:10:55 +02:00
Anonymous Maarten
f73c25648f cmake: attempt to use framework in Xcode's sdl2-config.cmake 2022-05-31 00:10:55 +02:00
Anonymous Maarten
4c3d1d32a5 Use INTERFACE_INCLUDE_DIRECTORIES in Xcode's sdl2-config.cmake 2022-05-31 00:10:55 +02:00
Sam Lantinga
7c2a6ea5f2 Removed 64-bit check for Apple
We build the SDL framework for macOS, iOS, and tvOS, including 32-bit and 64-bit architectures. Since this file will actually be included in the framework you're linking, it should be fine to use.
2022-05-31 00:10:55 +02:00
Sam Lantinga
e30b9993b9 Fixed warning about location of CMake support files 2022-05-31 00:10:55 +02:00
Anonymous Maarten
2c591e408e Add CMake configuration files, meant for Macos framework 2022-05-31 00:10:55 +02:00