File: FindLame.cmake

package info (click to toggle)
musescore 2.3.2%2Bdfsg2-7~deb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 187,932 kB
  • sloc: cpp: 264,610; xml: 176,707; sh: 3,311; ansic: 1,384; python: 356; makefile: 188; perl: 82; pascal: 78
file content (24 lines) | stat: -rw-r--r-- 773 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
find_path(LAME_INCLUDE_DIR lame/lame.h PATHS /opt/local/include /usr/local/Cellar/lame/*/include)
find_path(LAME_INCLUDE_DIR lame/lame.h)

find_library(LAME_LIBRARY NAMES mp3lame PATHS /opt/local/lib /usr/local/Cellar/lame/*/lib NO_DEFAULT_PATH)
find_library(LAME_LIBRARY NAMES mp3lame)

if (MINGW)
  set(LAME_INCLUDE_DIR "")
  set(LAME_LIBRARY "")
endif(MINGW)

if (LAME_INCLUDE_DIR AND LAME_LIBRARY)
      set(LAME_FOUND TRUE)
endif (LAME_INCLUDE_DIR AND LAME_LIBRARY)

if (LAME_FOUND)
      if (NOT LAME_FIND_QUIETLY)
            message (STATUS "Found lame: ${LAME_LIBRARY}")
      endif (NOT LAME_FIND_QUIETLY)
else (LAME_FOUND)
      if (LAME_FIND_REQUIRED)
            message (FATAL_ERROR "Could not find: lame")
      endif (LAME_FIND_REQUIRED)
endif (LAME_FOUND)