allow using system tinygltf library
This commit is contained in:
parent
6f5c690a2d
commit
45a8b91364
|
@ -657,7 +657,11 @@ add_subdirectory(Externals/glslang)
|
|||
if(WIN32 OR APPLE)
|
||||
add_subdirectory(Externals/spirv_cross)
|
||||
endif()
|
||||
add_subdirectory(Externals/tinygltf)
|
||||
|
||||
dolphin_find_optional_system_library(TinyGLTF Externals/tinygltf)
|
||||
if(NOT DEFINED tinygltf)
|
||||
add_library(tinygltf ALIAS tinygltf::tinygltf) # using system library
|
||||
endif()
|
||||
|
||||
if(ENABLE_VULKAN)
|
||||
add_definitions(-DHAS_VULKAN)
|
||||
|
|
|
@ -7,5 +7,5 @@ if (NOT MSVC)
|
|||
endif()
|
||||
target_sources(tinygltf PRIVATE
|
||||
tinygltf/tiny_gltf.cc)
|
||||
target_include_directories(tinygltf INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_include_directories(tinygltf INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/tinygltf)
|
||||
dolphin_disable_warnings(tinygltf)
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <array>
|
||||
#include <utility>
|
||||
|
||||
#include <tinygltf/tiny_gltf.h>
|
||||
#include <tiny_gltf.h>
|
||||
|
||||
#include "Common/IOFile.h"
|
||||
#include "Common/Logging/Log.h"
|
||||
|
|
Loading…
Reference in New Issue