~ubuntu-branches/ubuntu/trusty/qgis/trusty

« back to all changes in this revision

Viewing changes to cmake/FindProj.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#    PROJ_LIBRARY
8
8
 
9
9
 
10
 
FIND_PATH(PROJ_INCLUDE_DIR proj_api.h /usr/local/include /usr/include c:/msys/local/include)
 
10
# FIND_PATH and FIND_LIBRARY normally search standard locations
 
11
# before the specified paths. To search non-standard paths first,
 
12
# FIND_* is invoked first with specified paths and NO_DEFAULT_PATH
 
13
# and then again with no specified paths to search the default
 
14
# locations. When an earlier FIND_* succeeds, subsequent FIND_*s
 
15
# searching for the same item do nothing. 
 
16
FIND_PATH(PROJ_INCLUDE_DIR proj_api.h
 
17
  "$ENV{LIB_DIR}/include/proj"
 
18
  "$ENV{LIB_DIR}/include"
 
19
  #mingw
 
20
  c:/msys/local/include
 
21
  NO_DEFAULT_PATH
 
22
  )
 
23
FIND_PATH(PROJ_INCLUDE_DIR proj_api.h)
11
24
 
12
 
FIND_LIBRARY(PROJ_LIBRARY NAMES proj PATHS /usr/local/lib /usr/lib c:/msys/local/lib)
 
25
FIND_LIBRARY(PROJ_LIBRARY NAMES proj PATHS
 
26
  "$ENV{LIB_DIR}/lib"
 
27
  #mingw
 
28
  c:/msys/local/lib
 
29
  NO_DEFAULT_PATH
 
30
  )
 
31
FIND_LIBRARY(PROJ_LIBRARY NAMES proj)
13
32
 
14
33
IF (PROJ_INCLUDE_DIR AND PROJ_LIBRARY)
15
34
   SET(PROJ_FOUND TRUE)