/usr/lib/Wt/cmake/WtFindGm.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 | # We set:
# - GM_INCLUDE_DIRS
# - GM_LIBRARIES
# - GM_FOUND
# Taking into account:
# - GM_PREFIX
FIND_PATH(GM_INCLUDE_DIR
magick/api.h
PATHS
${GM_PREFIX}/include/GraphicsMagick/
${GM_PREFIX}/include/
${GM_PREFIX}/
include/GraphicsMagick/
/usr/include/GraphicsMagick/
/usr/include/
)
IF(WIN32)
FIND_LIBRARY(GM_LIB
NAMES
CORE_RL_Magick_
PATHS
${GM_PREFIX}/VisualMagick/lib/Release
${GM_PREFIX}/VisualMagick/lib
)
FIND_LIBRARY(GMPP_LIB
NAMES
CORE_RL_Magick++_
PATHS
${GM_PREFIX}/VisualMagick/lib/Release
${GM_PREFIX}/VisualMagick/lib
)
FIND_LIBRARY(GM_LIB_DEBUG
NAMES
CORE_DB_Magick_
PATHS
${GM_PREFIX}/VisualMagick/lib/Debug
${GM_PREFIX}/VisualMagick/lib
)
FIND_LIBRARY(GMPP_LIB_DEBUG
NAMES
CORE_DB_Magick++_
PATHS
${GM_PREFIX}/VisualMagick/lib/Debug
${GM_PREFIX}/VisualMagick/lib
)
IF(GM_LIB AND GMPP_LIB AND GM_LIB_DEBUG AND GMPP_LIB_DEBUG AND GM_INCLUDE_DIR)
SET(GM_FOUND TRUE)
SET(GM_INCLUDE_DIRS ${GM_INCLUDE_DIR})
SET(GM_LIBRARIES
optimized ${GM_LIB}
optimized ${GMPP_LIB}
debug ${GM_LIB_DEBUG}
debug ${GMPP_LIB_DEBUG}
${GM_SUPPORT_LIBS}
)
ELSE(GM_LIB AND GMPP_LIB AND GM_LIB_DEBUG AND GMPP_LIB_DEBUG AND GM_INCLUDE_DIR)
SET(GM_FOUND FALSE)
ENDIF(GM_LIB AND GMPP_LIB AND GM_LIB_DEBUG AND GMPP_LIB_DEBUG AND GM_INCLUDE_DIR)
ELSE(WIN32)
FIND_LIBRARY(GM_LIB
NAMES
GraphicsMagick
PATHS
${GM_PREFIX}/lib
)
IF(GM_LIB AND GM_INCLUDE_DIR)
SET(GM_FOUND TRUE)
SET(GM_INCLUDE_DIRS ${GM_INCLUDE_DIR})
SET(GM_LIBRARIES ${GM_LIB} ${GM_SUPPORT_LIBS})
ELSE(GM_LIB AND GM_INCLUDE_DIR)
SET(GM_FOUND FALSE)
ENDIF(GM_LIB AND GM_INCLUDE_DIR)
ENDIF(WIN32)
|