FindMPG123.cmake 590 B

1234567891011121314151617
  1. # - Find mpg123
  2. # Find the native mpg123 includes and libraries
  3. #
  4. # MPG123_INCLUDE_DIRS - where to find mpg123.h, etc.
  5. # MPG123_LIBRARIES - List of libraries when using mpg123.
  6. # MPG123_FOUND - True if mpg123 found.
  7. find_path(MPG123_INCLUDE_DIR mpg123.h)
  8. find_library(MPG123_LIBRARY NAMES mpg123 libmpg123)
  9. include(FindPackageHandleStandardArgs)
  10. find_package_handle_standard_args(MPG123 DEFAULT_MSG MPG123_INCLUDE_DIR MPG123_LIBRARY)
  11. set(MPG123_INCLUDE_DIRS ${MPG123_INCLUDE_DIR})
  12. set(MPG123_LIBRARIES ${MPG123_LIBRARY})
  13. mark_as_advanced(MPG123_INCLUDE_DIR MPG123_LIBRARY)