Files
OpenVulkano/3rdParty/stb/CMakeLists.txt
2021-07-30 20:21:11 +02:00

13 lines
288 B
CMake

include(FetchContent)
FetchContent_Declare(
stb
EXCLUDE_FROM_ALL
GIT_REPOSITORY https://github.com/nothings/stb.git
GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(stb)
add_library(stb INTERFACE)
target_include_directories(stb INTERFACE ${stb_SOURCE_DIR})