diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
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) |
