I'm trying to download a single header library with cmake. This is what I have currently:
ExternalProject_Add(stb
GIT_REPOSITORY https://github.com/nothings/stb.git
GIT_TAG 8b5f1f37b5b75829fc72d38e7b5d4bcbf8a26d55
PREFIX ${CMAKE_BINARY_DIR}/stb
)
ExternalProject_Get_Property(stb SOURCE_DIR)
set(STB_INCLUDE_DIR ${source_dir})
message("Source dir of stb = ${SOURCE_DIR}")
// ...
target_include_directories(myTarget PUBLIC ${STB_INCLUDE_DIR})
But I don't see the header files getting downloaded anywhere