You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
611 B

  1. # raylib CMake Project
  2. This provides a base project template which builds with [CMake](https://cmake.org).
  3. ## Usage
  4. To compile the example, use one of the following dependending on your build target...
  5. ### Desktop
  6. Use the following to build for desktop:
  7. ``` bash
  8. cmake -B build
  9. cmake --build build
  10. ```
  11. ### Web
  12. Compiling for the web requires the [Emscripten SDK](https://emscripten.org/docs/getting_started/downloads.html):
  13. ``` bash
  14. mkdir build
  15. cd build
  16. emcmake cmake .. -DPLATFORM=Web -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS="-s USE_GLFW=3" -DCMAKE_EXECUTABLE_SUFFIX=".html"
  17. emmake make
  18. ```