diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-02-24 02:14:05 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-02-24 02:14:05 +0000 |
| commit | 5b8c90c31a066ea9ace99e7874e4fa43f770a1a2 (patch) | |
| tree | bc5c8d044956667af17b0d17a5d80227a548bfd0 /AssetLoader | |
| parent | Updated tiny gltf (diff) | |
| download | DiligentTools-5b8c90c31a066ea9ace99e7874e4fa43f770a1a2.tar.gz DiligentTools-5b8c90c31a066ea9ace99e7874e4fa43f770a1a2.zip | |
Updated cmake file to enable draco compression in tiny gltf
Diffstat (limited to 'AssetLoader')
| -rw-r--r-- | AssetLoader/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
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 ) |
