mirror of
https://github.com/minetest/irrlicht.git
synced 2025-02-22 05:40:26 +01:00
Add tinygltf library
This commit is contained in:
parent
124708784f
commit
36a90e9973
@ -36,6 +36,8 @@ endif()
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||
enable_testing()
|
||||
add_subdirectory(src)
|
||||
add_subdirectory(src/lib/tinygltf)
|
||||
add_subdirectory(src/Irrlicht)
|
||||
add_subdirectory(test)
|
||||
|
||||
option(BUILD_EXAMPLES "Build example applications" FALSE)
|
||||
|
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
@ -356,6 +356,11 @@ add_library(IRRMESHOBJ OBJECT
|
||||
${IRRMESHLOADER}
|
||||
)
|
||||
|
||||
target_link_libraries(IRRMESHOBJ
|
||||
PRIVATE
|
||||
tinygltf::tinygltf
|
||||
)
|
||||
|
||||
add_library(IRROBJ OBJECT
|
||||
CBillboardSceneNode.cpp
|
||||
CCameraSceneNode.cpp
|
||||
|
Loading…
x
Reference in New Issue
Block a user