2 # GIF_LIBRARIES - libraries to link to in order to use GIF
3 # GIF_FOUND, if false, do not try to link
4 # GIF_INCLUDE_DIR, where to find the headers
6 # $GIF_DIR is an environment variable that would
7 # correspond to the ./configure --prefix=$GIF_DIR
9 # Created by Eric Wing.
10 # Modifications by Alexander Neundorf
12 FIND_PATH(GIF_INCLUDE_DIR gif_lib.h
21 FIND_PATH(GIF_INCLUDE_DIR gif_lib.h
26 [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
30 # the gif library can have many names :-/
31 SET(POTENTIAL_GIF_LIBS gif libgif ungif libungif giflib)
33 FIND_LIBRARY(GIF_LIBRARY
34 NAMES ${POTENTIAL_GIF_LIBS}
38 PATH_SUFFIXES lib64 lib
43 FIND_LIBRARY(GIF_LIBRARY
44 NAMES ${POTENTIAL_GIF_LIBS}
54 [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]
56 PATH_SUFFIXES lib64 lib
60 SET(GIF_LIBRARIES ${GIF_LIBRARY})
62 # handle the QUIETLY and REQUIRED arguments and set GIF_FOUND to TRUE if
63 # all listed variables are TRUE
64 INCLUDE(FindPackageHandleStandardArgs)
65 FIND_PACKAGE_HANDLE_STANDARD_ARGS(GIF DEFAULT_MSG GIF_LIBRARY GIF_INCLUDE_DIR)
67 MARK_AS_ADVANCED(GIF_INCLUDE_DIR GIF_LIBRARY)