From 4955f728f282e6730193e307a50f8ae174a432c3 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 31 Aug 2023 15:10:19 -0400 Subject: add stb_image --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a1851a..370b3eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,8 @@ set(PKE_SOURCE_FILES src/asset-manager.hpp src/asset-manager.cpp src/vendor/glm_include.hpp + src/vendor/stb_image_include.hpp + src/vendor/stb_image_include.cpp src/window.hpp src/window.cpp ) @@ -113,6 +115,10 @@ if (glm_FOUND) target_include_directories(pke PUBLIC ${glm_INCLUDE_DIR}) endif (glm_FOUND) +FetchContent_Declare(stb URL https://github.com/nothings/stb/archive/5736b15f7ea0ffb08dd38af21067c314d6a3aae9.zip) +FetchContent_MakeAvailable(stb) +target_include_directories(pke PUBLIC "${PROJECT_BINARY_DIR}/_deps/stb-src") + target_include_directories(pke PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src") target_link_libraries(pke PUBLIC imguidocked) -- cgit v1.2.3