mirror of
https://github.com/minetest/irrlicht.git
synced 2025-02-11 09:00:24 +01:00
Add tinygltf library
This commit is contained in:
parent
8f13ae81e5
commit
f8a91087e6
@ -38,6 +38,7 @@ if(NOT CMAKE_BUILD_TYPE)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||||
|
add_subdirectory(source/lib/tinygltf)
|
||||||
add_subdirectory(source/Irrlicht)
|
add_subdirectory(source/Irrlicht)
|
||||||
|
|
||||||
option(BUILD_EXAMPLES "Build example applications" FALSE)
|
option(BUILD_EXAMPLES "Build example applications" FALSE)
|
||||||
|
@ -171,6 +171,11 @@ add_library(IRRMESHOBJ OBJECT
|
|||||||
${IRRMESHLOADER}
|
${IRRMESHLOADER}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
target_link_libraries(IRRMESHOBJ
|
||||||
|
PRIVATE
|
||||||
|
tinygltf::tinygltf
|
||||||
|
)
|
||||||
|
|
||||||
add_library(IRROBJ OBJECT
|
add_library(IRROBJ OBJECT
|
||||||
CBillboardSceneNode.cpp
|
CBillboardSceneNode.cpp
|
||||||
CCameraSceneNode.cpp
|
CCameraSceneNode.cpp
|
||||||
|
22
source/lib/tinygltf/CMakeLists.txt
Normal file
22
source/lib/tinygltf/CMakeLists.txt
Normal 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}"
|
||||||
|
)
|
21
source/lib/tinygltf/LICENSE
Normal file
21
source/lib/tinygltf/LICENSE
Normal 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
26753
source/lib/tinygltf/json.hpp
Normal file
File diff suppressed because it is too large
Load Diff
7909
source/lib/tinygltf/tiny_gltf.h
Normal file
7909
source/lib/tinygltf/tiny_gltf.h
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user