CMakeLists.txt 471 B

123456789101112
  1. add_library(tinygltf STATIC)
  2. target_compile_definitions(tinygltf PUBLIC TINYGLTF_NOEXCEPTION)
  3. target_compile_definitions(tinygltf PUBLIC TINYGLTF_NO_EXTERNAL_IMAGE)
  4. target_compile_definitions(tinygltf PUBLIC TINYGLTF_USE_CPP14)
  5. if (NOT MSVC)
  6. target_compile_features(tinygltf PRIVATE cxx_std_20)
  7. endif()
  8. target_sources(tinygltf PRIVATE
  9. tinygltf/tiny_gltf.cc)
  10. target_include_directories(tinygltf INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
  11. dolphin_disable_warnings(tinygltf)