#Downloading single header library with cmake

3 messages · Page 1 of 1 (latest)

cloud lantern
#

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

gaunt prawnBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.

gaunt prawnBOT
#

@cloud lantern

This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.