Does anyone know how to use FetchContent in CMake to build and include https://github.com/oneapi-src/oneTBB ?
FetchContent_Declare(oneTBB
GIT_REPOSITORY https://github.com/oneapi-src/oneTBB
GIT_TAG v2021.9.0
)
FetchContent_GetProperties(oneTBB)
if(NOT oneTBB_POPULATED)
FetchContent_Populate(oneTBB)
add_subdirectory(${oneTBB_SOURCE_DIR} ${oneTBB_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
I've attempted to include the oneTBB library like so ... however, this obviously doesn't work as those paths don't exist. oneTBB, unlike my MantaRay library isn't a header-only library. What should I do?