libsuperderpy/cmake/FindAllegro5Main.cmake

21 lines
798 B
CMake
Raw Normal View History

2012-08-19 03:04:55 +02:00
# Try to find allegro 5
#
# Allegro5Main_FOUND - system has allegro5
# Allegro5Main_LIBRARIES - Link these to use allegro5
2012-08-19 03:04:55 +02:00
#
SET(Allegro5Main_NAMES ${Allegro5Main_NAMES} allegro_main allegro_main_static liballegro_main liballegro_main_static allegro_main-debug)
FIND_LIBRARY(Allegro5Main_LIBRARY NAMES ${Allegro5Main_NAMES} HINTS ${Allegro5_DIRECTORY})
2012-08-19 03:04:55 +02:00
# handle the QUIETLY and REQUIRED arguments and set Allegro5Main_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Allegro5Main DEFAULT_MSG Allegro5Main_LIBRARY)
2012-08-19 03:04:55 +02:00
IF(Allegro5Main_FOUND)
SET(Allegro5Main_LIBRARIES ${Allegro5Main_LIBRARY})
SET(Allegro5_LIBS ${Allegro5_LIBS} ${Allegro5Main_LIBRARIES})
ENDIF(Allegro5Main_FOUND)
MARK_AS_ADVANCED(Allegro5Main_LIBRARY )