MuseScore/build/FindLame.cmake
2014-05-30 13:37:44 +02:00

24 lines
773 B
CMake

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)