mirror of https://github.com/encounter/SDL.git
Add CMake section to the Xcode ReadMe.txt
This commit is contained in:
parent
423c7ef856
commit
774c50174c
|
@ -21,6 +21,18 @@ You may alternatively install it in <Your home directory>/Library/Frameworks
|
||||||
if your access privileges are not high enough.
|
if your access privileges are not high enough.
|
||||||
|
|
||||||
|
|
||||||
|
Use in CMake projects:
|
||||||
|
SDL2.framework can be used in CMake projects using the following pattern:
|
||||||
|
```
|
||||||
|
find_package(SDL2 REQUIRED COMPONENTS SDL2)
|
||||||
|
add_executable(my_game ${MY_SOURCES})
|
||||||
|
target_link_libraries(my_game PRIVATE SDL2::SDL2)
|
||||||
|
```
|
||||||
|
If SDL2.framework is installed in a non-standard location,
|
||||||
|
please refer to the following link for ways to configure CMake:
|
||||||
|
https://cmake.org/cmake/help/latest/command/find_package.html#config-mode-search-procedure
|
||||||
|
|
||||||
|
|
||||||
Additional References:
|
Additional References:
|
||||||
|
|
||||||
- Screencast tutorials for getting started with OpenSceneGraph/Mac OS X are
|
- Screencast tutorials for getting started with OpenSceneGraph/Mac OS X are
|
||||||
|
|
Loading…
Reference in New Issue