12 lines
251 B
CMake
12 lines
251 B
CMake
include(FetchContent)
|
|
|
|
FetchContent_Declare(
|
|
stb
|
|
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})
|