SimpleEngine/CMake/GetTinygltf.cmake

16 lines
517 B
CMake
Raw Permalink Normal View History

2022-09-22 02:52:06 +00:00
set(TINYGLTF_HEADER_ONLY ON CACHE INTERNAL "" FORCE)
set(TINYGLTF_INSTALL OFF CACHE INTERNAL "" FORCE)
set(TINYGLTF_BUILD_LOADER_EXAMPLE OFF CACHE INTERNAL "" FORCE)
# Get the tinygltf header libraries.
include(FetchContent)
FetchContent_Declare(
tinygltf
GIT_REPOSITORY https://github.com/syoyo/tinygltf.git
GIT_TAG eec4c98862b7fb760b2fb70971d7b652e593af9f
)
FetchContent_MakeAvailable(tinygltf)
message("Downloaded tinygltf library to: ${tinygltf_SOURCE_DIR}")
#set(STB_INCLUDE_DIR ${stb_SOURCE_DIR})