Add tinygltf library

This commit is contained in:
JosiahWI 2022-10-16 18:02:52 -05:00
parent 8f13ae81e5
commit f8a91087e6
No known key found for this signature in database
GPG Key ID: C7BB8573A4ABC4B9
6 changed files with 34711 additions and 0 deletions

View File

@ -38,6 +38,7 @@ if(NOT CMAKE_BUILD_TYPE)
endif()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
add_subdirectory(source/lib/tinygltf)
add_subdirectory(source/Irrlicht)
option(BUILD_EXAMPLES "Build example applications" FALSE)

View File

@ -171,6 +171,11 @@ add_library(IRRMESHOBJ OBJECT
${IRRMESHLOADER}
)
target_link_libraries(IRRMESHOBJ
PRIVATE
tinygltf::tinygltf
)
add_library(IRROBJ OBJECT
CBillboardSceneNode.cpp
CCameraSceneNode.cpp

View File

@ -0,0 +1,22 @@
cmake_minimum_required(VERSION 3.5)
project(tinygltf
VERSION 2.6.3
DESCRIPTION "Header only C++11 tiny glTF 2.0 library"
LANGUAGES CXX
)
add_library(tinygltf INTERFACE)
add_library(tinygltf::tinygltf ALIAS tinygltf)
target_compile_definitions(tinygltf
INTERFACE
TINYGLTF_NO_EXTERNAL_IMAGE
TINYGLTF_NO_STB_IMAGE
TINYGLTF_NO_STB_IMAGE_WRITE
)
target_include_directories(tinygltf
INTERFACE
"${CMAKE_CURRENT_SOURCE_DIR}"
)

View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2017 Syoyo Fujita, Aurélien Chatelain and many contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

26753
source/lib/tinygltf/json.hpp Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff