File: FindLame.cmake

package info (click to toggle)
musescore 2.3.2%2Bdfsg1-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports-sloppy
  • size: 204,200 kB
  • sloc: cpp: 267,218; xml: 177,839; ansic: 140,048; sh: 6,921; python: 6,867; perl: 423; makefile: 332; awk: 142; pascal: 74; sed: 3
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)