summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRex Dieter <[email protected]>2015-04-21 16:46:38 -0500
committerRex Dieter <[email protected]>2015-04-21 16:46:38 -0500
commit030b7dea47a29d40b497106602148d8e66a4088d (patch)
tree6a19be9c653f0d4cc5f59b289e0b3334cf126bfc
parentdd3c135ef7db7436cf3056353c89a52a713fca96 (diff)
Use quazip5 with QT5BUILD
-rw-r--r--cmake/modules/Findquazip.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/modules/Findquazip.cmake b/cmake/modules/Findquazip.cmake
index bf98267..c06ac2d 100644
--- a/cmake/modules/Findquazip.cmake
+++ b/cmake/modules/Findquazip.cmake
@@ -6,8 +6,13 @@ if(QUAZIP_INCLUDE_DIR AND QUAZIP_LIBRARIES)
set(QUAZIP_FOUND TRUE)
else(QUAZIP_INCLUDE_DIR AND QUAZIP_LIBRARIES)
+ if(QT5BUILD)
+ find_path(QUAZIP_INCLUDE_DIR NAMES quazip5/quazip.h)
+ find_library(QUAZIP_LIBRARIES NAMES quazip5)
+ else(QT5BUILD)
find_path(QUAZIP_INCLUDE_DIR NAMES quazip/quazip.h)
find_library(QUAZIP_LIBRARIES NAMES quazip)
+ endif(QT5BUILD)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(quazip DEFAULT_MSG QUAZIP_INCLUDE_DIR QUAZIP_LIBRARIES)