aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules/FindLame.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Modules/FindLame.cmake')
-rw-r--r--cmake/Modules/FindLame.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/cmake/Modules/FindLame.cmake b/cmake/Modules/FindLame.cmake
new file mode 100644
index 0000000..e0b9f5f
--- /dev/null
+++ b/cmake/Modules/FindLame.cmake
@@ -0,0 +1,17 @@
+FIND_PATH(LAME_INCLUDE_DIR lame/lame.h)
+FIND_LIBRARY(LAME_LIBRARIES NAMES mp3lame)
+
+IF(LAME_INCLUDE_DIR AND LAME_LIBRARIES)
+ SET(LAME_FOUND TRUE)
+ENDIF(LAME_INCLUDE_DIR AND LAME_LIBRARIES)
+
+IF(LAME_FOUND)
+ IF (NOT Lame_FIND_QUIETLY)
+ MESSAGE(STATUS "Found lame includes: ${LAME_INCLUDE_DIR}/lame/lame.h")
+ MESSAGE(STATUS "Found lame library: ${LAME_LIBRARIES}")
+ ENDIF (NOT Lame_FIND_QUIETLY)
+ELSE(LAME_FOUND)
+ IF (Lame_FIND_REQUIRED)
+ MESSAGE(FATAL_ERROR "Could NOT find lame development files")
+ ENDIF (Lame_FIND_REQUIRED)
+ENDIF(LAME_FOUND)