diff --git a/3rdParty/CMakeLists.txt b/3rdParty/CMakeLists.txt index 9e6fb09..8575ea1 100644 --- a/3rdParty/CMakeLists.txt +++ b/3rdParty/CMakeLists.txt @@ -36,6 +36,7 @@ add_subdirectory(eastl) add_subdirectory(moodycamel_concurrentqueue) add_subdirectory(tinyusdz) add_subdirectory(dds_image) +add_subdirectory(brotli) if (NOT IOS AND OPENVULKANO_ENABLE_CURL) add_subdirectory(curl) diff --git a/3rdParty/brotli/CMakeLists.txt b/3rdParty/brotli/CMakeLists.txt new file mode 100644 index 0000000..e99afb6 --- /dev/null +++ b/3rdParty/brotli/CMakeLists.txt @@ -0,0 +1,17 @@ +include (FetchContent) + +if(NOT DEFINED BROTLI_REPO) + set(BROTLI_REPO https://github.com/google/brotli.git) +endif () + +FetchContent_Declare( + brotli + GIT_REPOSITORY ${BROTLI_REPO} + GIT_TAG v1.1.0 + GIT_SHALLOW TRUE +) + +set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE) +set(BROTLI_BUILD_TOOLS OFF CACHE BOOL "" FORCE) +set(BROTLI_DISABLE_TESTS OFF CACHE BOOL "" FORCE) +FetchContent_MakeAvailable(brotli) \ No newline at end of file diff --git a/openVulkanoCpp/CMakeLists.txt b/openVulkanoCpp/CMakeLists.txt index 2ddd42d..0f36928 100644 --- a/openVulkanoCpp/CMakeLists.txt +++ b/openVulkanoCpp/CMakeLists.txt @@ -69,7 +69,7 @@ if (NOT ANDROID AND NOT IOS) endif() endif() -target_link_libraries(openVulkanoCpp PUBLIC magic_enum yaml-cpp fmt spdlog glm pugixml stb eigen utf8cpp imgui_internal TracyClient stud-uuid ryml unordered_dense concurrentqueue units dds_image) +target_link_libraries(openVulkanoCpp PUBLIC magic_enum brotlienc brotlidec yaml-cpp fmt spdlog glm pugixml stb eigen utf8cpp imgui_internal TracyClient stud-uuid ryml unordered_dense concurrentqueue units dds_image) if (OPENVULKANO_ENABLE_KTX) target_link_libraries(openVulkanoCpp PUBLIC ktx) endif ()