File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ option(TINYGLTF_BUILD_VALIDATOR_EXAMPLE "Build validator exampe" OFF)
16
16
option (TINYGLTF_BUILD_BUILDER_EXAMPLE "Build glTF builder example" OFF )
17
17
option (TINYGLTF_HEADER_ONLY "On: header-only mode. Off: create tinygltf library(No TINYGLTF_IMPLEMENTATION required in your project)" OFF )
18
18
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 )
19
20
20
21
if (TINYGLTF_BUILD_LOADER_EXAMPLE)
21
22
add_executable (loader_example
@@ -67,13 +68,20 @@ if (TINYGLTF_INSTALL)
67
68
# Do not install .lib even if !TINYGLTF_HEADER_ONLY
68
69
69
70
INSTALL ( FILES
70
- json.hpp
71
- stb_image.h
72
- stb_image_write.h
73
71
tiny_gltf.h
74
72
${TINYGLTF_EXTRA_SOUECES}
75
73
DESTINATION
76
74
include
77
75
)
78
76
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
+
79
87
endif (TINYGLTF_INSTALL)
You can’t perform that action at this time.
0 commit comments