From 8f4ccd91072415aa56ab609d1eeafe416b00e0a3 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 7 Sep 2023 22:42:23 -0400 Subject: add cgltf --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ed4b76..ce3be95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,16 +18,21 @@ set(PKE_SOURCE_FILES src/components.cpp src/ecs.hpp src/ecs.cpp + src/entities.hpp + src/entities.cpp src/event.hpp src/event.cpp src/game.hpp src/game.cpp src/memory.hpp src/memory.cpp + src/memory-allocator.hpp src/dynamic-array.hpp src/dynamic-array.cpp src/asset-manager.hpp src/asset-manager.cpp + src/vendor/cgltf-include.hpp + src/vendor/cgltf-include.cpp src/vendor/glm_include.hpp src/vendor/stb_image_include.hpp src/vendor/stb_image_include.cpp @@ -121,6 +126,10 @@ FetchContent_Declare(stb URL https://github.com/nothings/stb/archive/5736b15f7ea FetchContent_MakeAvailable(stb) target_include_directories(pke PUBLIC "${PROJECT_BINARY_DIR}/_deps/stb-src") +FetchContent_Declare(cgltf URL https://github.com/jkuhlmann/cgltf/archive/271614ce5fa8bed6daf3bc824d12a3a652ebdb15.zip) +FetchContent_MakeAvailable(cgltf) +target_include_directories(pke PUBLIC "${PROJECT_BINARY_DIR}/_deps/cgltf-src") + target_include_directories(pke PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src") target_link_libraries(pke PUBLIC imguidocked) -- cgit v1.2.3