|
@ -1,6 +1,9 @@ |
|
|
cmake_minimum_required(VERSION 3.11) # FetchContent is available in 3.11+ |
|
|
cmake_minimum_required(VERSION 3.11) # FetchContent is available in 3.11+ |
|
|
project(example) |
|
|
project(example) |
|
|
|
|
|
|
|
|
|
|
|
# Generate compile_commands.json |
|
|
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) |
|
|
|
|
|
|
|
|
# Dependencies |
|
|
# Dependencies |
|
|
find_package(raylib 4.0.0 QUIET) # QUIET or REQUIRED |
|
|
find_package(raylib 4.0.0 QUIET) # QUIET or REQUIRED |
|
|
if (NOT raylib_FOUND) # If there's none, fetch and build raylib |
|
|
if (NOT raylib_FOUND) # If there's none, fetch and build raylib |
|
|