Update project for CMake (#167)

This commit is contained in:
Rob Loach
2021-11-06 10:00:29 -04:00
committed by GitHub
parent af51e4ccf7
commit 65a82bfe54
2 changed files with 11 additions and 6 deletions

View File

@ -1,10 +1,10 @@
find_package(raylib 3.0.0 QUIET CONFIG)
find_package(raylib 4.0.0 QUIET CONFIG)
if (NOT raylib_FOUND)
include(FetchContent)
FetchContent_Declare(
raylib
GIT_REPOSITORY https://github.com/raysan5/raylib.git
GIT_TAG df5c522049ddd82fba048a6bd069338999729d6a
GIT_TAG 0851960397f02a477d80eda2239f90fae14dec64
)
FetchContent_GetProperties(raylib)
if (NOT raylib_POPULATED) # Have we downloaded raylib yet?