12 lines
280 B
CMake
12 lines
280 B
CMake
if(NOT DEFINED stb_SOURCE_DIR)
|
|
include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/CPM.cmake")
|
|
|
|
CPMAddPackage(
|
|
NAME "stb"
|
|
GITHUB_REPOSITORY "nothings/stb"
|
|
GIT_TAG master
|
|
)
|
|
endif()
|
|
|
|
add_library(stb_image INTERFACE)
|
|
target_include_directories(stb_image INTERFACE ${stb_SOURCE_DIR})
|