# Try to find allegro 5 # # ALLEGRO5_FONT_FOUND - system has allegro5 # ALLEGRO5_FONT_INCLUDE_DIRS - the allrgo5 include directory # ALLEGRO5_FONT_LIBRARIES - Link these to use allegro5 # FIND_PATH(ALLEGRO5_FONT_INCLUDE_DIR allegro_font.h HINTS $ENV{LUA_DIR} PATH_SUFFIXES include/allegro5 include/allegro include PATHS ~/Library/Frameworks /Library/Frameworks /usr/local /usr /sw /opt/local /opt/csw /opt ) FIND_LIBRARY(ALLEGRO5_FONT_LIBRARY NAMES allegro_font HINTS $ENV{ALLEGRO5_DIR} PATH_SUFFIXES lib64 lib PATHS ~/Library/Frameworks /Library/Frameworks /usr/local /usr /sw /opt/local /opt/csw /opt ) MESSAGE(STATUS "${ALLEGRO5_FONT_LIBRARY}") IF(ALLEGRO5_FONT_LIBRARY) SET(ALLEGRO5_FONT_LIBRARIES "${ALLEGRO5_FONT_LIBRARY}" CACHE STRING "Allegro5 Font Libraries") SET(ALLEGRO5_FONT_INCLUDE_DIRS "${ALLEGRO5_FONT_INCLUDE_DIR}" CACHE STRING "Allegro5 Font Include Dirs") SET(ALLEGRO5_FONT_FOUND TRUE) ENDIF(ALLEGRO5_FONT_LIBRARY) MARK_AS_ADVANCED(ALLEGRO5_FONT_INCLUDE_DIR ALLEGRO5_FONT_INCLUDE_DIRS ALLEGRO5_FONT_LIBRARIES ALLEGRO5_FONT_LIBRARY)