Files
jak-project/third-party/tiny_gltf/CMakeLists.txt
T
Hat Kid 348bf83b89 custom levels: add draco lib to support compressed glb files (#3723)
By adding the `draco` library as a dependency, `tinygltf` can support
GLB files compressed with the Draco compression algorithm which allows
for drastically reduced file sizes for custom levels (TFL's Crescent Top
GLB for example went from 135 MB to 37 MB).
2024-10-28 21:11:19 +01:00

11 lines
297 B
CMake
Vendored
Generated

if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set(CMAKE_CXX_FLAGS "-O3")
elseif(MSVC)
set(CMAKE_CXX_FLAGS "/EHsc")
endif()
include_directories(../ ../stb_image)
add_library(tiny_gltf tiny_gltf.cpp)
target_link_libraries(tiny_gltf draco::draco stb_image)