diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e2f4b00..f20b02d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,3 +23,18 @@ file(GLOB_RECURSE SRC_FILES "src/*.c" "src/*.h") target_sources(Hyperspace PRIVATE ${SRC_FILES}) +# raylib +find_package(raylib QUIET) +if (NOT raylib_FOUND) + include(FetchContent) + FetchContent_Declare( + raylib + GIT_REPOSITORY https://github.com/raysan5/raylib.git + GIT_TAG 5.0 + GIT_SHALLOW 1 + ) + FetchContent_MakeAvailable(raylib) +endif() + +target_link_libraries(Hyperspace PRIVATE raylib) + |
