The minimum required cmake supports the updated way of building

master
lesleyrs 1年前
父节点
当前提交
3e82443534
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. +2
    -4
      Working-with-CMake.md

+ 2
- 4
Working-with-CMake.md

@ -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
cd build && cmake .. # Build from that directory so the build files are in one place
cmake --build . # Build the project
cmake -B build && cmake --build build
``` ```
## Loading raylib inside cmake ## Loading raylib inside cmake

正在加载...
取消
保存