-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathFindSHAPELIB.cmake
More file actions
25 lines (21 loc) · 970 Bytes
/
FindSHAPELIB.cmake
File metadata and controls
25 lines (21 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ckwg +4
# Copyright 2010 2014 by Kitware, Inc. All Rights Reserved. Please refer to
# KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
# Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
# Locate the system installed SHAPELIB
# The following variables will be set:
#
# SHAPELIB_FOUND - Set to true if SHAPELIB can be found
# SHAPELIB_INCLUDE_DIR - The path to the SHAPELIB header files
# SHAPELIB_LIBRARY - The full path to the SHAPELIB library
if( SHAPELIB_DIR )
find_package( SHAPELIB NO_MODULE )
elseif( NOT SHAPELIB_FOUND )
include(CommonFindMacros)
setup_find_root_context(SHAPELIB)
find_path( SHAPELIB_INCLUDE_DIR shapefil.h PATH_SUFFIXES libshp ${SHAPELIB_FIND_OPTS})
find_library( SHAPELIB_LIBRARY shp ${SHAPELIB_FIND_OPTS})
restore_find_root_context(SHAPELIB)
include( FindPackageHandleStandardArgs )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( SHAPELIB SHAPELIB_INCLUDE_DIR SHAPELIB_LIBRARY )
endif()