File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,7 @@ IF(WITH_CORE)
210210 IF (WITH_GUI)
211211 FIND_PACKAGE (Qwt REQUIRED)
212212 ENDIF (WITH_GUI)
213+ FIND_PACKAGE (LibZip REQUIRED)
213214
214215 IF (WITH_INTERNAL_QEXTSERIALPORT)
215216 SET (QEXTSERIALPORT_INCLUDE_DIR ${CMAKE_SOURCE_DIR} /src/core/gps/qextserialport)
Original file line number Diff line number Diff line change 1+ # CMake module to search for libzip
2+ #
3+ # Once done this will define
4+ #
5+ # LIBZIP_FOUND - system has the zip library
6+ # LIBZIP_INCLUDE_DIR - the zip include directory
7+ # LIBZIP_LIBRARY - Link this to use the zip library
8+ #
9+ # Copyright (c) 2017, Paul Blottiere, <paul.blottiere@oslandia.com>
10+ #
11+ # Redistribution and use is allowed according to the terms of the BSD license.
12+ # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
13+
14+ FIND_PATH (LIBZIP_INCLUDE_DIR
15+ zip.h
16+ PATHS
17+ /usr/local/include
18+ /usr/include
19+ "$ENV{LIB_DIR} /include"
20+ "$ENV{INCLUDE} "
21+ )
22+
23+ FIND_LIBRARY (LIBZIP_LIBRARY
24+ NAMES zip
25+ PATHS
26+ /usr/local/lib
27+ /usr/lib
28+ "$ENV{LIB_DIR} /lib"
29+ "$ENV{LIB} "
30+ )
31+
32+ IF (LIBZIP_LIBRARY AND LIBZIP_INCLUDE_DIR)
33+ SET (LIBZIP_FOUND TRUE )
34+ ENDIF (LIBZIP_LIBRARY AND LIBZIP_INCLUDE_DIR)
35+
36+ IF (LIBZIP_FOUND)
37+ MESSAGE (STATUS "Found libzip: ${LIBZIP_LIBRARY} " )
38+ ELSE (LIPZIP_FOUND)
39+ MESSAGE (FATAL_ERROR "Could not find libzip" )
40+ ENDIF (LIBZIP_FOUND)
You can’t perform that action at this time.
0 commit comments