| 1 |
Description: Use upstream QuaZip CMake config |
| 2 |
Use upstream QuaZip's CMake config instead of a custom one. |
| 3 |
Author: Cosima Neidahl <[email protected]> |
| 4 |
Origin: https://gitlab.com/OPNA2608/rlottie-qml/-/commit/5656211dd8ae190795e343f47a3393fd3d8d25a4 |
| 5 |
Forwarded: https://gitlab.com/mymike00/rlottie-qml/-/merge_requests/1 |
| 6 |
Last-Update: 2024-10-18 |
| 7 |
--- |
| 8 |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
| 9 |
--- a/CMakeLists.txt |
| 10 |
+++ b/CMakeLists.txt |
| 11 |
@@ -21,10 +21,9 @@ |
| 12 |
# set(rlottie_DIR "${CMAKE_CURRENT_BINARY_DIR}/../rlottie/install/lib/cmake/rlottie") |
| 13 |
find_package(rlottie REQUIRED) |
| 14 |
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake) |
| 15 |
|
| 16 |
+find_package(QuaZip-Qt5 REQUIRED) |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
+target_link_libraries(${PLUGIN} QuaZip::QuaZip rlottie::rlottie) |
| 21 |
target_link_libraries(${PLUGIN} |
| 22 |
# PUBLIC |
| 23 |
Qt5::Qml |
| 24 |
--- a/cmake/rLottieQmlConfig.cmake.in |
| 25 |
+++ b/cmake/rLottieQmlConfig.cmake.in |
| 26 |
@@ -2,7 +2,7 @@ |
| 27 |
include(CMakeFindDependencyMacro) |
| 28 |
|
| 29 |
# find_dependency(rlottie REQUIRED) |
| 30 |
|
| 31 |
+find_dependency(QuaZip-Qt5 REQUIRED) |
| 32 |
|
| 33 |
if(NOT TARGET rLottieQml::rLottieQml) |
| 34 |
include("${rLottieQml_CMAKE_DIR}/rLottieQmlExport.cmake") |