20 lines
593 B
CMake
20 lines
593 B
CMake
# Copyright (c) 2025 Dominic Masters
|
|
#
|
|
# This software is released under the MIT License.
|
|
# https://opensource.org/licenses/MIT
|
|
|
|
include(FetchContent)
|
|
FetchContent_Declare(
|
|
raylib
|
|
URL https://github.com/raysan5/raylib/archive/refs/tags/5.5.tar.gz
|
|
URL_HASH MD5=61638c4c2c097fbca1d6a71e4da36c16
|
|
)
|
|
FetchContent_GetProperties(raylib)
|
|
FetchContent_MakeAvailable(raylib)
|
|
|
|
# Define expected target if not already defined
|
|
if(NOT TARGET raylib)
|
|
set(raylib_FOUND FALSE CACHE INTERNAL "Whether raylib was found")
|
|
else()
|
|
set(raylib_FOUND TRUE CACHE INTERNAL "Whether raylib was found")
|
|
endif() |