2012-08-19 03:04:55 +02:00
|
|
|
# Try to find allegro 5
|
|
|
|
#
|
|
|
|
# ALLEGRO5_IMAGE_FOUND - system has allegro5
|
2012-08-20 02:35:37 +02:00
|
|
|
# ALLEGRO5_IMAGE_INCLUDE_DIR - the allrgo5 include directory
|
2012-08-19 03:04:55 +02:00
|
|
|
# ALLEGRO5_IMAGE_LIBRARIES - Link these to use allegro5
|
|
|
|
#
|
|
|
|
|
2012-08-20 02:35:37 +02:00
|
|
|
FIND_PATH(ALLEGRO5_IMAGE_INCLUDE_DIR allegro5/allegro_image.h)
|
2012-08-19 03:04:55 +02:00
|
|
|
|
2012-08-20 02:35:37 +02:00
|
|
|
SET(ALLEGRO5_IMAGE_NAMES ${ALLEGRO5_IMAGE_NAMES} allegro_image allegro_image_static liballegro_image liballegro_image_static)
|
|
|
|
FIND_LIBRARY(ALLEGRO5_IMAGE_LIBRARY NAMES ${ALLEGRO5_IMAGE_NAMES} )
|
2012-08-19 03:04:55 +02:00
|
|
|
|
2012-08-20 02:35:37 +02:00
|
|
|
# handle the QUIETLY and REQUIRED arguments and set ALLEGRO5_IMAGE_FOUND to TRUE if
|
|
|
|
# all listed variables are TRUE
|
|
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ALLEGRO5_IMAGE DEFAULT_MSG ALLEGRO5_IMAGE_LIBRARY ALLEGRO5_IMAGE_INCLUDE_DIR)
|
2012-08-19 03:04:55 +02:00
|
|
|
|
2012-08-20 02:35:37 +02:00
|
|
|
IF(ALLEGRO5_IMAGE_FOUND)
|
|
|
|
SET(ALLEGRO5_IMAGE_LIBRARIES ${ALLEGRO5_IMAGE_LIBRARY})
|
|
|
|
ENDIF(ALLEGRO5_IMAGE_FOUND)
|
2012-08-19 03:04:55 +02:00
|
|
|
|
2012-08-20 02:35:37 +02:00
|
|
|
MARK_AS_ADVANCED(ALLEGRO5_IMAGE_LIBRARY ALLEGRO5_IMAGE_INCLUDE_DIR )
|