libsuperderpy/cmake/FindAllegro5Font.cmake

24 lines
1 KiB
CMake
Raw Normal View History

2012-08-19 03:04:55 +02:00
# Try to find allegro 5
#
# ALLEGRO5_FONT_FOUND - system has allegro5
# ALLEGRO5_FONT_INCLUDE_DIR - the allrgo5 include directory
2012-08-19 03:04:55 +02:00
# ALLEGRO5_FONT_LIBRARIES - Link these to use allegro5
#
FIND_PATH(ALLEGRO5_FONT_INCLUDE_DIR allegro5/allegro_font.h HINTS ${ALLEGRO5_INCLUDE_DIR})
2012-08-19 03:04:55 +02:00
SET(ALLEGRO5_FONT_NAMES ${ALLEGRO5_FONT_NAMES} allegro_font liballegro_font AllegroFont-5.2 allegro_font-debug allegro_font_static liballegro_font_static allegro_font-static)
FIND_LIBRARY(ALLEGRO5_FONT_LIBRARY NAMES ${ALLEGRO5_FONT_NAMES} HINTS ${ALLEGRO5_DIRECTORY})
2012-08-19 03:04:55 +02:00
# handle the QUIETLY and REQUIRED arguments and set ALLEGRO5_FONT_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ALLEGRO5_FONT DEFAULT_MSG ALLEGRO5_FONT_LIBRARY ALLEGRO5_FONT_INCLUDE_DIR)
2012-08-19 03:04:55 +02:00
IF(ALLEGRO5_FONT_FOUND)
SET(ALLEGRO5_FONT_LIBRARIES ${ALLEGRO5_FONT_LIBRARY})
SET(ALLEGRO5_LIBS ${ALLEGRO5_LIBS} ${ALLEGRO5_FONT_LIBRARIES})
ENDIF(ALLEGRO5_FONT_FOUND)
2012-08-19 03:04:55 +02:00
MARK_AS_ADVANCED(ALLEGRO5_FONT_LIBRARY ALLEGRO5_FONT_INCLUDE_DIR )