blob: cf2a7dd7000b60c4c36e64931c6672b817abaae5 (
plain)
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
26
27
28
29
30
31
32
33
34
35
|
#
# $Id$
#
# - Find zlib
# Find the native ZLIB includes and library
#
# Z_INCLUDE_DIRS - where to find zlib.h, etc.
# Z_LIBRARIES - List of libraries when using zlib.
# Z_FOUND - True if zlib found.
IF (Z_INCLUDE_DIRS)
# Already in cache, be silent
SET(Z_FIND_QUIETLY TRUE)
ENDIF (Z_INCLUDE_DIRS)
FIND_PATH(Z_INCLUDE_DIR zlib.h)
SET(Z_NAMES z zlib zdll)
FIND_LIBRARY(Z_LIBRARY NAMES ${Z_NAMES} )
# handle the QUIETLY and REQUIRED arguments and set Z_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Z DEFAULT_MSG Z_LIBRARY Z_INCLUDE_DIR)
IF(Z_FOUND)
SET( Z_LIBRARIES ${Z_LIBRARY} )
SET( Z_INCLUDE_DIRS ${Z_INCLUDE_DIR} )
ELSE(Z_FOUND)
SET( Z_LIBRARIES )
SET( Z_INCLUDE_DIRS )
ENDIF(Z_FOUND)
MARK_AS_ADVANCED( Z_LIBRARIES Z_INCLUDE_DIRS )
|