diff --git a/CMakeLists.txt b/CMakeLists.txt index f246f3b..cf4b77a 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,11 @@ option(PANDA_INCLUDE_IMGUI "include imgui" ON) ### Fallback link if(NOT RAYLIB_LINK) - set(RAYLIB_LINK "https://github.com/raysan5/raylib/archive/refs/tags/5.0.zip") + set(RAYLIB_LINK "https://github.com/raysan5/raylib/archive/refs/tags/5.5.tar.gz") +endif() + +if(NOT RAYLIB_EXTRA_LINK) + set(RAYLIB_EXTRA_LINK "https://github.com/raylib-extras/extras-cpp/archive/refs/heads/main.zip") endif() if(NOT IMGUI_LINK) @@ -37,6 +41,10 @@ set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) FetchContent_Declare(raylib URL ${RAYLIB_LINK}) FetchContent_MakeAvailable(raylib) +message(STATUS "Downloading raylib extra library") +FetchContent_Declare(raylib-extra URL ${RAYLIB_EXTRA_LINK}) +FetchContent_MakeAvailable(raylib-extra) + message(STATUS "Downloading inifile-cpp library") FetchContent_Declare(inifile-cpp URL ${INIFILE_LINK}) FetchContent_MakeAvailable(inifile-cpp) @@ -47,7 +55,8 @@ file(GLOB_RECURSE PROJECT_SOURCES CONFIGURE_DEPENDS "src/*.cpp") set(PROJECT_INCLUDE "src" - ${inifile-cpp_SOURCE_DIR}/include) + "${inifile-cpp_SOURCE_DIR}/include" + "${raylib-extra_SOURCE_DIR}") set(PROJECT_LIBRARY raylib)