mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-04 05:09:17 -05:00
The minimum required cmake supports the updated way of building
@ -19,11 +19,9 @@ if (APPLE)
|
|||||||
target_link_libraries(${PROJECT_NAME} "-framework OpenGL")
|
target_link_libraries(${PROJECT_NAME} "-framework OpenGL")
|
||||||
endif()
|
endif()
|
||||||
```
|
```
|
||||||
To build, use these commands:
|
To generate build files in separate directory and build the project, use these commands:
|
||||||
```cmake
|
```cmake
|
||||||
mkdir build # Create a build directory
|
cmake -B build && cmake --build build
|
||||||
cd build && cmake .. # Build from that directory so the build files are in one place
|
|
||||||
cmake --build . # Build the project
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Loading raylib inside cmake
|
## Loading raylib inside cmake
|
||||||
|
|||||||
Reference in New Issue
Block a user