/usr/lib/Wt/cmake/WtFindPng.txt is in witty-examples 3.3.3+dfsg-4.1.
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 | # We set:
# - PNG_LIBRARIES
# - PNG_FOUND
# We do not set:
# - PNG_INCLUDE_DIRS
# Taking into account:
# - PNG_PREFIX
IF(NOT PNG_NAMES)
SET(PNG_NAMES png png12 png14)
ENDIF(NOT PNG_NAMES)
foreach(l ${PNG_NAMES})
list(APPEND PNG_DEBUG_NAMES "${l}d")
endforeach()
IF(WIN32)
FIND_LIBRARY(PNG_LIB_RELEASE
NAMES
${PNG_NAMES}
PATHS
${PNG_PREFIX}/lib
)
FIND_LIBRARY(PNG_LIB_DEBUG
NAMES
${PNG_DEBUG_NAMES}
PATHS
${PNG_PREFIX}/lib
)
SET(PNG_LIBRARIES ${PNG_LIB_RELEASE})
IF(PNG_LIB_RELEASE AND PNG_LIB_DEBUG)
SET(PNG_LIBRARIES optimized ${PNG_LIB_RELEASE} debug ${PNG_LIB_DEBUG})
ENDIF(PNG_LIB_RELEASE AND PNG_LIB_DEBUG)
ELSE(WIN32)
FIND_LIBRARY(PNG_LIBRARIES
NAMES
png png12 png14
PATHS
${PNG_PREFIX}/lib
${USERLIB_PREFIX}/lib
)
ENDIF(WIN32)
IF(PNG_LIBRARIES)
SET(PNG_FOUND TRUE)
MESSAGE(STATUS "Found png libraries")
ELSE(PNG_LIBRARIES)
SET(PNG_FOUND FALSE)
MESSAGE(STATUS "Png libraries not found - set PNG_PREFIX")
ENDIF(PNG_LIBRARIES)
|