# Use FetchContent to download and build raylib # This is a faster alternative to using a git repo, since this just downloads the source # while the git repo pull takes a lot longer. Not sure why, other repos don't seem to have this issue # If you would like to use git instead, use this: # - - - - - - - - - - - - - - - - - - - - - - - - #FetchContent_Declare( # raylib # GIT_REPOSITORY "https://github.com/raysan5/raylib.git" # GIT_TAG "master" # GIT_SHALLOW TRUE # GIT_PROGRESS TRUE #) # - - - - - - - - - - - - - - - - - - - - - - - - include(FetchContent) set(FETCHCONTENT_QUIET FALSE) set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) # don't build the supplied examples set(BUILD_GAMES OFF CACHE BOOL "" FORCE) # don't build the supplied example games FetchContent_Declare( raylib URL https://github.com/raysan5/raylib/archive/refs/tags/4.5.0.tar.gz ) FetchContent_MakeAvailable(raylib) # Raylib conf set(raylib_VERBOSE 1) # not 100 % sure if this does anything...