2017-06-26 15:21:13 +02:00
|
|
|
# Try to find allegro 5
|
|
|
|
#
|
|
|
|
# ALLEGRO5_VIDEO_FOUND - system has allegro5
|
|
|
|
# ALLEGRO5_VIDEO_INCLUDE_DIR - the allrgo5 include directory
|
|
|
|
# ALLEGRO5_VIDEO_LIBRARIES - Link these to use allegro5
|
|
|
|
#
|
|
|
|
|
2017-08-24 21:09:07 +02:00
|
|
|
FIND_PATH(ALLEGRO5_VIDEO_INCLUDE_DIR allegro5/allegro_video.h HINTS ${ALLEGRO5_INCLUDE_DIR})
|
2017-06-26 15:21:13 +02:00
|
|
|
|
2018-07-04 18:51:26 +02:00
|
|
|
SET(ALLEGRO5_VIDEO_NAMES ${ALLEGRO5_VIDEO_NAMES} allegro_video liballegro_video AllegroVideo-5.2 allegro_video-debug allegro_video-static allegro_video_static liballegro_video_static)
|
2017-06-26 15:21:13 +02:00
|
|
|
FIND_LIBRARY(ALLEGRO5_VIDEO_LIBRARY NAMES ${ALLEGRO5_VIDEO_NAMES} )
|
|
|
|
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set ALLEGRO5_VIDEO_FOUND to TRUE if
|
|
|
|
# all listed variables are TRUE
|
|
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ALLEGRO5_VIDEO DEFAULT_MSG ALLEGRO5_VIDEO_LIBRARY ALLEGRO5_VIDEO_INCLUDE_DIR)
|
|
|
|
|
|
|
|
IF(ALLEGRO5_VIDEO_FOUND)
|
|
|
|
SET(ALLEGRO5_VIDEO_LIBRARIES ${ALLEGRO5_VIDEO_LIBRARY})
|
|
|
|
SET(ALLEGRO5_LIBS ${ALLEGRO5_LIBS} ${ALLEGRO5_VIDEO_LIBRARIES})
|
|
|
|
ENDIF(ALLEGRO5_VIDEO_FOUND)
|
|
|
|
|
|
|
|
MARK_AS_ADVANCED(ALLEGRO5_VIDEO_LIBRARY ALLEGRO5_VIDEO_INCLUDE_DIR )
|