~ppsspp/ppsspp/ppsspp_1.3.0

« back to all changes in this revision

Viewing changes to CMakeTests/FindLibZip.cmake

  • Committer: Sérgio Benjamim
  • Date: 2017-01-02 00:12:05 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20170102001205-cxbta9za203nmjwm
1.3.0 source (from ppsspp_1.3.0-r160.p5.l1762.a165.t83~56~ubuntu16.04.1.tar.xz).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# https://code.google.com/p/osgearth-for-android/source/browse/trunk/CMakeModules/FindLibZip.cmake?r=4
 
2
 
 
3
# osgEarth - Dynamic map generation toolkit for OpenSceneGraph
 
4
# Copyright 2008-2010 Pelican Mapping
 
5
 
 
6
# http://osgearth.org
 
7
# git://github.com/gwaldron/osgearth
 
8
 
 
9
# osgEarth is free software; you can redistribute it and/or modify
 
10
# it under the terms of the GNU Lesser General Public License as published by
 
11
# the Free Software Foundation; either version 2 of the License, or
 
12
# (at your option) any later version.
 
13
 
 
14
# This program is distributed in the hope that it will be useful,
 
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
# GNU Lesser General Public License for more details.
 
18
 
 
19
# You should have received a copy of the GNU Lesser General Public License
 
20
# along with this program.  If not, see <http://www.gnu.org/licenses/>
 
21
 
 
22
 
 
23
# Locate libzip
 
24
# This module defines
 
25
# LIBZIP_LIBRARY
 
26
# LIBZIP_FOUND, if false, do not try to link to libzip 
 
27
# LIBZIP_INCLUDE_DIR, where to find the headers
 
28
#
 
29
 
 
30
FIND_PATH(LIBZIP_INCLUDE_DIR zip.h
 
31
    $ENV{LIBZIP_DIR}/include
 
32
    $ENV{LIBZIP_DIR}
 
33
    $ENV{OSGDIR}/include
 
34
    $ENV{OSGDIR}
 
35
    $ENV{OSG_ROOT}/include
 
36
    ~/Library/Frameworks
 
37
    /Library/Frameworks
 
38
    /usr/local/include
 
39
    /usr/include
 
40
    /sw/include # Fink
 
41
    /opt/local/include # DarwinPorts
 
42
    /opt/csw/include # Blastwave
 
43
    /opt/include
 
44
    [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
 
45
    /usr/freeware/include
 
46
)
 
47
 
 
48
FIND_LIBRARY(LIBZIP_LIBRARY 
 
49
    NAMES libzip zip
 
50
    PATHS
 
51
    $ENV{LIBZIP_DIR}/lib
 
52
    $ENV{LIBZIP_DIR}
 
53
    $ENV{OSGDIR}/lib
 
54
    $ENV{OSGDIR}
 
55
    $ENV{OSG_ROOT}/lib
 
56
    ~/Library/Frameworks
 
57
    /Library/Frameworks
 
58
    /usr/local/lib
 
59
    /usr/lib
 
60
    /sw/lib
 
61
    /opt/local/lib
 
62
    /opt/csw/lib
 
63
    /opt/lib
 
64
    [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
 
65
    /usr/freeware/lib64
 
66
)
 
67
 
 
68
SET(LIBZIP_FOUND "NO")
 
69
IF(LIBZIP_LIBRARY AND LIBZIP_INCLUDE_DIR)
 
70
    SET(LIBZIP_FOUND "YES")
 
71
ENDIF(LIBZIP_LIBRARY AND LIBZIP_INCLUDE_DIR)
 
72
 
 
73
INCLUDE(FindPackageHandleStandardArgs)
 
74
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBZIP DEFAULT_MSG LIBZIP_LIBRARY LIBZIP_INCLUDE_DIR)