From 5b8c90c31a066ea9ace99e7874e4fa43f770a1a2 Mon Sep 17 00:00:00 2001 From: assiduous Date: Sun, 23 Feb 2020 18:14:05 -0800 Subject: Updated cmake file to enable draco compression in tiny gltf --- AssetLoader/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'AssetLoader') diff --git a/AssetLoader/CMakeLists.txt b/AssetLoader/CMakeLists.txt index 6416c54..1b4a74b 100644 --- a/AssetLoader/CMakeLists.txt +++ b/AssetLoader/CMakeLists.txt @@ -41,6 +41,13 @@ PRIVATE Diligent-TextureLoader ) +if (TARGET draco) + target_link_libraries(Diligent-AssetLoader PRIVATE draco) + target_compile_definitions(Diligent-AssetLoader PRIVATE TINYGLTF_ENABLE_DRACO) + get_target_property(DRACO_SOURCE_DIR draco SOURCE_DIR) + target_include_directories(Diligent-AssetLoader PRIVATE "${DRACO_SOURCE_DIR}/src" "${CMAKE_BINARY_DIR}") +endif() + set_target_properties(Diligent-AssetLoader PROPERTIES FOLDER DiligentTools ) -- cgit v1.2.3