2 # Find the native mpg123 includes and library
4 # MPG123_INCLUDE_DIRS - where to find mpg123.h
5 # MPG123_LIBRARIES - List of libraries when using mpg123.
6 # MPG123_FOUND - True if mpg123 found.
8 IF(MPG123_INCLUDE_DIR AND MPG123_LIBRARY)
9 # Already in cache, be silent
10 SET(MPG123_FIND_QUIETLY TRUE)
11 ENDIF(MPG123_INCLUDE_DIR AND MPG123_LIBRARY)
13 FIND_PATH(MPG123_INCLUDE_DIR mpg123.h
18 FIND_LIBRARY(MPG123_LIBRARY NAMES mpg123 mpg123-0
23 # handle the QUIETLY and REQUIRED arguments and set MPG123_FOUND to TRUE if
24 # all listed variables are TRUE
25 INCLUDE(FindPackageHandleStandardArgs)
26 FIND_PACKAGE_HANDLE_STANDARD_ARGS(MPG123 DEFAULT_MSG MPG123_LIBRARY MPG123_INCLUDE_DIR)
29 SET(MPG123_LIBRARIES ${MPG123_LIBRARY})
30 SET(MPG123_INCLUDE_DIRS ${MPG123_INCLUDE_DIR})