Description: Use upstream QuaZip CMake config
 Use upstream QuaZip's CMake config instead of a custom one.
Author: Cosima Neidahl <opna2608@protonmail.com>
Origin: https://gitlab.com/OPNA2608/rlottie-qml/-/commit/5656211dd8ae190795e343f47a3393fd3d8d25a4
Forwarded: https://gitlab.com/mymike00/rlottie-qml/-/merge_requests/1
Last-Update: 2024-10-18
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -21,10 +21,9 @@
 # set(rlottie_DIR "${CMAKE_CURRENT_BINARY_DIR}/../rlottie/install/lib/cmake/rlottie")
 find_package(rlottie REQUIRED)
 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
-find_package(QuaZip REQUIRED)
+find_package(QuaZip-Qt5 REQUIRED)
 
-target_include_directories(${PLUGIN} SYSTEM PRIVATE ${QUAZIP_INCLUDE_DIR})
-target_link_libraries(${PLUGIN} ${QUAZIP_LIBRARIES} rlottie::rlottie)
+target_link_libraries(${PLUGIN} QuaZip::QuaZip  rlottie::rlottie)
 target_link_libraries(${PLUGIN}
   # PUBLIC
   Qt5::Qml
--- a/cmake/rLottieQmlConfig.cmake.in
+++ b/cmake/rLottieQmlConfig.cmake.in
@@ -2,7 +2,7 @@
 include(CMakeFindDependencyMacro)
 
 # find_dependency(rlottie REQUIRED)
-# find_dependency(QuaZip REQUIRED)
+find_dependency(QuaZip-Qt5 REQUIRED)
 
 if(NOT TARGET rLottieQml::rLottieQml)
     include("${rLottieQml_CMAKE_DIR}/rLottieQmlExport.cmake")
