Skip to content

Commit 116d003

Browse files
authored
Merge pull request syoyo#504 from nim65s/vendor
2 parents ff972dc + 2148549 commit 116d003

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Diff for: CMakeLists.txt

+11-3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ option(TINYGLTF_BUILD_VALIDATOR_EXAMPLE "Build validator exampe" OFF)
1616
option(TINYGLTF_BUILD_BUILDER_EXAMPLE "Build glTF builder example" OFF)
1717
option(TINYGLTF_HEADER_ONLY "On: header-only mode. Off: create tinygltf library(No TINYGLTF_IMPLEMENTATION required in your project)" OFF)
1818
option(TINYGLTF_INSTALL "Install tinygltf files during install step. Usually set to OFF if you include tinygltf through add_subdirectory()" ON)
19+
option(TINYGLTF_INSTALL_VENDOR "Install vendored nlohmann/json and nothings/stb headers" ON)
1920

2021
if (TINYGLTF_BUILD_LOADER_EXAMPLE)
2122
add_executable(loader_example
@@ -67,13 +68,20 @@ if (TINYGLTF_INSTALL)
6768
# Do not install .lib even if !TINYGLTF_HEADER_ONLY
6869

6970
INSTALL ( FILES
70-
json.hpp
71-
stb_image.h
72-
stb_image_write.h
7371
tiny_gltf.h
7472
${TINYGLTF_EXTRA_SOUECES}
7573
DESTINATION
7674
include
7775
)
7876

77+
if(TINYGLTF_INSTALL_VENDOR)
78+
INSTALL ( FILES
79+
json.hpp
80+
stb_image.h
81+
stb_image_write.h
82+
DESTINATION
83+
include
84+
)
85+
endif()
86+
7987
endif(TINYGLTF_INSTALL)

0 commit comments

Comments
 (0)