2012-08-19 03:04:55 +02:00
|
|
|
# Try to find allegro 5
|
|
|
|
#
|
|
|
|
# ALLEGRO5_FOUND - system has allegro5
|
2012-08-20 02:35:37 +02:00
|
|
|
# ALLEGRO5_INCLUDE_DIR - the allrgo5 include directory
|
2012-08-19 03:04:55 +02:00
|
|
|
# ALLEGRO5_LIBRARIES - Link these to use allegro5
|
|
|
|
#
|
|
|
|
|
2012-08-20 02:35:37 +02:00
|
|
|
FIND_PATH(ALLEGRO5_INCLUDE_DIR allegro5/allegro.h)
|
2012-08-19 03:04:55 +02:00
|
|
|
|
2018-07-04 18:51:26 +02:00
|
|
|
SET(ALLEGRO5_NAMES ${ALLEGRO5_NAMES} allegro liballegro Allegro-5.2 allegro-debug allegro-static liballegro_static allegro_static)
|
2018-12-08 01:46:08 +01:00
|
|
|
FIND_LIBRARY(ALLEGRO5_LIBRARY NAMES ${ALLEGRO5_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_FOUND to TRUE if
|
|
|
|
# all listed variables are TRUE
|
|
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ALLEGRO5 DEFAULT_MSG ALLEGRO5_LIBRARY ALLEGRO5_INCLUDE_DIR)
|
2012-08-19 03:04:55 +02:00
|
|
|
|
2012-08-20 02:35:37 +02:00
|
|
|
IF(ALLEGRO5_FOUND)
|
2018-12-08 01:46:08 +01:00
|
|
|
SET(ALLEGRO5_LIBRARIES ${ALLEGRO5_LIBRARY})
|
|
|
|
SET(ALLEGRO5_LIBS ${ALLEGRO5_LIBS} ${ALLEGRO5_LIBRARIES})
|
|
|
|
get_filename_component(ALLEGRO5_DIRECTORY ${ALLEGRO5_LIBRARY} PATH)
|
2012-08-20 02:35:37 +02:00
|
|
|
ENDIF(ALLEGRO5_FOUND)
|
2012-08-19 03:04:55 +02:00
|
|
|
|
2018-12-08 01:46:08 +01:00
|
|
|
MARK_AS_ADVANCED(ALLEGRO5_LIBRARY ALLEGRO5_INCLUDE_DIR ALLEGRO5_DIRECTORY)
|