mirror of https://github.com/axmolengine/axmol.git
18 lines
590 B
CMake
18 lines
590 B
CMake
# - Find mpg123
|
|
# Find the native mpg123 includes and libraries
|
|
#
|
|
# MPG123_INCLUDE_DIRS - where to find mpg123.h, etc.
|
|
# MPG123_LIBRARIES - List of libraries when using mpg123.
|
|
# MPG123_FOUND - True if mpg123 found.
|
|
|
|
find_path(MPG123_INCLUDE_DIR mpg123.h)
|
|
find_library(MPG123_LIBRARY NAMES mpg123 libmpg123)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(MPG123 DEFAULT_MSG MPG123_INCLUDE_DIR MPG123_LIBRARY)
|
|
|
|
set(MPG123_INCLUDE_DIRS ${MPG123_INCLUDE_DIR})
|
|
set(MPG123_LIBRARIES ${MPG123_LIBRARY})
|
|
|
|
mark_as_advanced(MPG123_INCLUDE_DIR MPG123_LIBRARY)
|