Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[8d170f]: config / cmake / Modules / FindZLIB.cmake Maximize Restore History

Download this file

FindZLIB.cmake    45 lines (33 with data), 1.2 kB

 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
36
37
38
39
40
41
42
43
44
#
# Find a ZLIB library
#
# This file is used to manage using either a natively provided ZLIB library or the one in v3p if provided.
#
#
# As per the standard scheme the following definitions are used
# ZLIB_INCLUDE_DIR - where to find zlib.h
# ZLIB_LIBRARIES - the set of libraries to include to use ZLIB.
# ZLIB_FOUND - TRUE, if available somewhere on the system.
# Additionally
# VXL_USING_NATIVE_ZLIB - True if we are using a ZLIB library provided outside vxl (or v3p)
# If this FORCE variable is unset or is FALSE, try to find a native library.
IF( VXL_FORCE_V3P_ZLIB )
ELSE( VXL_FORCE_V3P_ZLIB )
INCLUDE( ${CMAKE_ROOT}/Modules/FindZLIB.cmake )
ENDIF( VXL_FORCE_V3P_ZLIB )
IF(ZLIB_FOUND)
SET(VXL_USING_NATIVE_ZLIB "YES")
# All the other variables are set by CMake's FindZLIB. Don't
# set them here.
ELSE(ZLIB_FOUND)
#
# At some point, in a "release" version, it is possible that someone
# will not have the v3p ZLIB library, so make sure the headers
# exist.
#
IF(EXISTS ${vxl_SOURCE_DIR}/v3p/zlib/zlib.h)
SET( ZLIB_FOUND "YES" )
SET( ZLIB_INCLUDE_DIR ${vxl_SOURCE_DIR}/v3p/zlib)
SET( ZLIB_LIBRARIES z )
ENDIF(EXISTS ${vxl_SOURCE_DIR}/v3p/zlib/zlib.h)
ENDIF(ZLIB_FOUND)