/usr/lib/Wt/cmake/WtFindHaru.txt is in witty-examples 3.3.4+dfsg-6ubuntu1.
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 | # 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
${HARU_PREFIX}/include/hpdf
${HARU_PREFIX}/include/libharu
/usr/include
)
IF(WIN32)
IF(HARU_DYNAMIC)
SET(HARU_RELEASE_NAMES "libhpdf")
SET(HARU_DEBUG_NAMES "libhpdfd")
ELSE(HARU_DYNAMIC)
SET(HARU_RELEASE_NAMES "libhpdfs")
SET(HARU_DEBUG_NAMES "libhpdfsd")
ENDIF(HARU_DYNAMIC)
FIND_LIBRARY(HARU_LIB_RELEASE
NAMES
${HARU_RELEASE_NAMES}
PATHS
${HARU_PREFIX}/lib
)
FIND_LIBRARY(HARU_LIB_DEBUG
NAMES
${HARU_DEBUG_NAMES}
PATHS
${HARU_PREFIX}/lib
)
SET(HARU_LIB ${HARU_LIB_RELEASE})
IF(HARU_LIB_RELEASE AND HARU_LIB_DEBUG)
SET(HARU_LIB optimized ${HARU_LIB_RELEASE} debug ${HARU_LIB_DEBUG})
ENDIF(HARU_LIB_RELEASE AND HARU_LIB_DEBUG)
SET(HARU_SUPPORT_LIBS_FOUND FALSE)
IF (PNG_LIBRARIES AND ZLIB_LIBRARIES)
SET(HARU_SUPPORT_LIBS_FOUND TRUE)
SET(HARU_SUPPORT_LIBS ${PNG_LIBRARIES} ${ZLIB_LIBRARIES})
ENDIF (PNG_LIBRARIES AND ZLIB_LIBRARIES)
ELSE(WIN32)
FIND_LIBRARY(HARU_LIB
NAMES
hpdf
haru
PATHS
${HARU_PREFIX}/lib
)
FIND_LIBRARY(M_LIB
NAMES
m
PATHS
${HARU_PREFIX}/lib
${USERLIB_PREFIX}/lib
/lib/x86_64-linux-gnu
)
SET(HARU_SUPPORT_LIBS_FOUND FALSE)
IF (PNG_LIBRARIES AND M_LIB AND ZLIB_LIBRARIES)
SET(HARU_SUPPORT_LIBS_FOUND TRUE)
SET(HARU_SUPPORT_LIBS ${PNG_LIBRARIES} ${M_LIB} ${ZLIB_LIBRARIES})
ENDIF (PNG_LIBRARIES AND M_LIB AND ZLIB_LIBRARIES)
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)
|