mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-02 16:20:27 +02:00
Move from tinygltf to tiniergltf (#13)
* Remove tinygltf * Integrate tiniergltf * Update build.yml to include jsoncpp * Namespace target * Undo noexcept removal, readd move constructor * Remove debug throw * Remove now obsolete build code * Bump CMake minimum version to 3.12 * Fix oops * Remove unnecessary install/export * Remove tinygltf from Config.cmake.in * Take inspiration from Minetest's FindJson.cmake * Move tiniergltf to separate repo * CI: Install git * Bump tiniergltf version (obtain jsoncpp via FetchContent) * Remove jsoncpp from build dependency list
This commit is contained in:
committed by
Josiah VanderZee
parent
777ec9d130
commit
0faf1320c5
@ -1,65 +0,0 @@
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
project(tinygltf
|
||||
VERSION 2.6.3
|
||||
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
|
||||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>"
|
||||
"$<INSTALL_INTERFACE:./>"
|
||||
)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
install(TARGETS tinygltf
|
||||
EXPORT tinygltf-export
|
||||
DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||
)
|
||||
|
||||
export(EXPORT tinygltf-export
|
||||
FILE "${CMAKE_BINARY_DIR}/cmake/tinygltfTargets.cmake"
|
||||
NAMESPACE tinygltf::
|
||||
)
|
||||
|
||||
install(
|
||||
DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/tinygltf"
|
||||
)
|
||||
|
||||
install(EXPORT tinygltf-export
|
||||
FILE tinygltfTargets.cmake
|
||||
NAMESPACE tinygltf::
|
||||
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/tinygltf"
|
||||
)
|
||||
|
||||
include(CMakePackageConfigHelpers)
|
||||
configure_package_config_file("${PROJECT_SOURCE_DIR}/tinygltfConfig.cmake.in"
|
||||
"${CMAKE_BINARY_DIR}/cmake/tinygltfConfig.cmake"
|
||||
INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/tinygltf"
|
||||
NO_SET_AND_CHECK_MACRO
|
||||
NO_CHECK_REQUIRED_COMPONENTS_MACRO
|
||||
)
|
||||
|
||||
write_basic_package_version_file(
|
||||
"${CMAKE_BINARY_DIR}/cmake/tinygltfConfigVersion.cmake"
|
||||
COMPATIBILITY AnyNewerVersion
|
||||
)
|
||||
|
||||
install(
|
||||
FILES
|
||||
"${CMAKE_BINARY_DIR}/cmake/tinygltfConfig.cmake"
|
||||
"${CMAKE_BINARY_DIR}/cmake/tinygltfConfigVersion.cmake"
|
||||
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/tinygltf"
|
||||
)
|
@ -1,21 +0,0 @@
|
||||
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.
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,5 +0,0 @@
|
||||
@PACKAGE_INIT@
|
||||
|
||||
if(NOT TARGET tinygltf::tinygltf)
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/tinygltfTargets.cmake")
|
||||
endif()
|
Reference in New Issue
Block a user