From f2bb61bce004163aacd1aad390f0eabfb5db9963 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 13 Mar 2023 23:35:10 +0100 Subject: Use FetchContent to handle dependencies --- contrib/CMakeLists.txt | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'contrib/CMakeLists.txt') diff --git a/contrib/CMakeLists.txt b/contrib/CMakeLists.txt index a61ecb5..97b0708 100644 --- a/contrib/CMakeLists.txt +++ b/contrib/CMakeLists.txt @@ -1 +1,33 @@ +set(BUILD_SHARED_LIBS No) +set(BUILD_GMOCK No) +set(INSTALL_GTEST No) add_subdirectory(imgui) +FetchContent_Declare( + EnTT + GIT_REPOSITORY https://github.com/skypjack/entt.git + GIT_TAG v3.11.1 + GIT_SHALLOW Yes + OVERRIDE_FIND_PACKAGE +) +FetchContent_Declare( + GTest + GIT_REPOSITORY https://github.com/google/googletest.git + GIT_TAG v1.13.0 + GIT_SHALLOW Yes + OVERRIDE_FIND_PACKAGE +) +FetchContent_Declare( + nlohmann_json + GIT_REPOSITORY https://github.com/nlohmann/json.git + GIT_TAG v3.11.2 + GIT_SHALLOW Yes + OVERRIDE_FIND_PACKAGE +) +FetchContent_Declare( + raylib + GIT_REPOSITORY https://github.com/raysan5/raylib.git + GIT_TAG 4.2.0 + GIT_SHALLOW Yes + OVERRIDE_FIND_PACKAGE +) +FetchContent_MakeAvailable(EnTT GTest nlohmann_json raylib) -- cgit v1.1