/usr/lib/Wt/cmake/WtFindHaru.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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | # We set:
# - HARU_INCLUDE_DIRS
# - HARU_LIBRARIES
# - HARU_FOUND
# Taking into account:
# - HARU_PREFIX
FIND_PATH(HARU_INCLUDE_DIR
hpdf.h
PATHS
${HARU_PREFIX}/include
/usr/include
/usr/local/include
/usr/local/include/hpdf
)
IF(WIN32)
FIND_LIBRARY(HARU_LIB_RELEASE
NAMES
libhpdf
libhpdfs
PATHS
${HARU_PREFIX}/lib
)
FIND_LIBRARY(HARU_LIB_DEBUG
NAMES
libhpdfd
libhpdfsd
PATHS
${HARU_PREFIX}/lib
)
FIND_LIBRARY(PNG_LIB_RELEASE
NAMES
libpng
PATHS
${HARU_PREFIX}/lib
)
FIND_LIBRARY(PNG_LIB_DEBUG
NAMES
libpngd
PATHS
${HARU_PREFIX}/lib
)
FIND_LIBRARY(Z_LIB
NAMES
zlib
PATHS
${HARU_PREFIX}/lib
${USERLIB_PREFIX}/lib
)
IF(HARU_LIB_RELEASE AND HARU_LIB_DEBUG)
SET(HARU_LIB optimized ${HARU_LIB_RELEASE} debug ${HARU_LIB_DEBUG})
SET(HARU_SUPPORT_LIBS "")
IF(PNG_LIB_RELEASE AND PNG_LIB_DEBUG)
SET(HARU_SUPPORT_LIBS ${HARU_SUPPORT_LIBS} optimized ${PNG_LIB_RELEASE} debug ${PNG_LIB_DEBUG})
ENDIF(PNG_LIB_RELEASE AND PNG_LIB_DEBUG)
IF(Z_LIB)
SET(HARU_SUPPORT_LIBS ${HARU_SUPPORT_LIBS} ${Z_LIB})
ENDIF(Z_LIB)
ENDIF(HARU_LIB_RELEASE AND HARU_LIB_DEBUG)
SET(HARU_SUPPORT_LIBS_FOUND TRUE)
ELSE(WIN32)
FIND_LIBRARY(HARU_LIB
NAMES
hpdf
PATHS
${HARU_PREFIX}/lib
)
FIND_LIBRARY(PNG_LIB
NAMES
png png12 png14
PATHS
${HARU_PREFIX}/lib
${USERLIB_PREFIX}/lib
)
FIND_LIBRARY(M_LIB
NAMES
m
PATHS
${HARU_PREFIX}/lib
${USERLIB_PREFIX}/lib
/lib/x86_64-linux-gnu
)
FIND_LIBRARY(Z_LIB
NAMES
z
PATHS
${HARU_PREFIX}/lib
${USERLIB_PREFIX}/lib
)
SET(HARU_SUPPORT_LIBS_FOUND FALSE)
IF (PNG_LIB AND M_LIB AND Z_LIB)
SET(HARU_SUPPORT_LIBS_FOUND TRUE)
SET(HARU_SUPPORT_LIBS ${PNG_LIB} ${M_LIB} ${Z_LIB})
ENDIF (PNG_LIB AND M_LIB AND Z_LIB)
ENDIF(WIN32)
IF(HARU_LIB AND HARU_INCLUDE_DIR AND HARU_SUPPORT_LIBS_FOUND)
SET(HARU_FOUND TRUE)
SET(HARU_INCLUDE_DIRS ${HARU_INCLUDE_DIR})
SET(HARU_LIBRARIES ${HARU_LIB} ${HARU_SUPPORT_LIBS})
MESSAGE(STATUS "Found libharu libraries")
ELSE(HARU_LIB AND HARU_INCLUDE_DIR AND HARU_SUPPORT_LIBS_FOUND)
SET(HARU_FOUND FALSE)
MESSAGE(STATUS "libharu libraries not found - set HARU_PREFIX")
ENDIF(HARU_LIB AND HARU_INCLUDE_DIR AND HARU_SUPPORT_LIBS_FOUND)
|