From d950e7cd9b3cfe59f684891fcdb69b550e797235 Mon Sep 17 00:00:00 2001 From: Brad Date: Fri, 20 Dec 2024 17:49:51 -0600 Subject: [PATCH] Documentation: Submodule hint added --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 5e706d9..ffe3892 100644 --- a/README.md +++ b/README.md @@ -211,6 +211,11 @@ set(TINYGLTF_INSTALL OFF CACHE INTERNAL "" FORCE) add_subdirectory(/path/to/tinygltf) ``` +NOTE: Using tinygltf as a submodule doesn't automatically add the headers to your include path (as standard for many libraries). To get this functionality, add the following to the CMakeLists.txt file from above: + +``` +target_include_directories(${PROJECT_NAME} PRIVATE "/path/to/tinygltf") +``` ### Saving gltTF 2.0 model