File: FindMiniMP3.cmake

package info (click to toggle)
allegro5 2%3A5.2.10.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 10,872 kB
  • sloc: ansic: 109,795; cpp: 12,976; objc: 4,592; java: 2,845; python: 2,595; javascript: 1,238; sh: 1,008; makefile: 41; xml: 27; pascal: 24
file content (16 lines) | stat: -rw-r--r-- 529 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# - Try to find MiniMP3 (https://github.com/lieff/minimp3)
# Once done, this will define
#
#  MINIMP3_FOUND - system has MiniMP3
#  MINIMP3_INCLUDE_DIRS - the MiniMP3 include directories

# Look for the header file.
find_path(MINIMP3_INCLUDE_DIRS
    NAMES minimp3.h minimp3_ex.h
)
mark_as_advanced(MINIMP3_INCLUDE_DIRS)

include(FindPackageHandleStandardArgs)
set(FPHSA_NAME_MISMATCHED TRUE)
find_package_handle_standard_args(MiniMP3 REQUIRED_VARS MINIMP3_INCLUDE_DIRS
                                  FOUND_VAR MINIMP3_FOUND)