diff --git a/libs/B-luga-graphics/deps/CMakeLists.txt b/libs/B-luga-graphics/deps/CMakeLists.txt index 438c7fc..1efd462 100644 --- a/libs/B-luga-graphics/deps/CMakeLists.txt +++ b/libs/B-luga-graphics/deps/CMakeLists.txt @@ -2,3 +2,4 @@ cmake_minimum_required(VERSION 3.20) add_subdirectory(bluga) add_subdirectory(bluga-physics) +add_subdirectory(raylib) diff --git a/libs/B-luga-graphics/deps/raylib/CMakeLists.txt b/libs/B-luga-graphics/deps/raylib/CMakeLists.txt new file mode 100644 index 0000000..d750c32 --- /dev/null +++ b/libs/B-luga-graphics/deps/raylib/CMakeLists.txt @@ -0,0 +1,19 @@ +cmake_minimum_required(VERSION 3.20) + +include(FetchContent) + +FetchContent_Declare( + raylib + CMAKE_ARGS "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_CONFIGURATION_TYPES=\"Release;Release\"" "-DCONFIG=Release" + URL "https://github.com/X-R-G-B/R-Bus/releases/latest/download/raylib.tar" + DOWNLOAD_NO_PROGRESS FALSE + DOWNLOAD_EXTRACT_TIMESTAMP TRUE +) + +FetchContent_MakeAvailable(raylib) + +target_include_directories( + ${PROJECT_NAME} + PRIVATE + ${raylib_SOURCE_DIR}/src +)