/usr/lib/Wt/cmake/WtFindZlib.txt is in witty-examples 3.3.0-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 45 46 47 48 49 50 51 52 53 54 | # This file defines:
# - ZLIB_INCLUDE_DIRS
# - ZLIB_LIBRARIES
# - ZLIB_FOUND
# - ZLIB_DEFINITIONS
# Taking into account:
# - ZLIB_PREFIX
FIND_PATH(ZLIB_INCLUDE zlib.h
${ZLIB_PREFIX}/include
/usr/include
)
IF(WIN32)
FIND_LIBRARY(ZLIB_LIB_RELEASE
NAMES
zlibstat zlib
PATHS
/usr/lib
${ZLIB_PREFIX}/lib
)
FIND_LIBRARY(ZLIB_LIB_DEBUG
NAMES
zlibstatd
PATHS
${ZLIB_PREFIX}/lib
)
IF(ZLIB_INCLUDE AND ZLIB_LIB_RELEASE AND ZLIB_LIB_DEBUG)
SET(ZLIB_FOUND TRUE)
SET(ZLIB_DEFINITIONS -DZLIB_WINAPI)
SET(ZLIB_INCLUDE_DIRS ${ZLIB_INCLUDE})
SET(ZLIB_LIBRARIES optimized ${ZLIB_LIB_RELEASE} debug ${ZLIB_LIB_DEBUG})
ELSE(ZLIB_INCLUDE AND ZLIB_LIB_RELEASE AND ZLIB_LIB_DEBUG)
SET(ZLIB_FOUND FALSE)
ENDIF(ZLIB_INCLUDE AND ZLIB_LIB_RELEASE AND ZLIB_LIB_DEBUG)
ELSE(WIN32)
FIND_LIBRARY(ZLIB_LIB
NAMES
z
PATHS
/usr/lib
${ZLIB_PREFIX}/lib
)
IF(ZLIB_INCLUDE AND ZLIB_LIB)
SET(ZLIB_FOUND TRUE)
SET(ZLIB_INCLUDE_DIRS ${ZLIB_INCLUDE})
SET(ZLIB_LIBRARIES ${ZLIB_LIB})
ELSE(ZLIB_INCLUDE AND ZLIB_LIB)
SET(ZLIB_FOUND FALSE)
ENDIF(ZLIB_INCLUDE AND ZLIB_LIB)
ENDIF(WIN32)
|