summaryrefslogtreecommitdiffstats
path: root/cmake/FindLAME.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindLAME.cmake')
-rw-r--r--cmake/FindLAME.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/cmake/FindLAME.cmake b/cmake/FindLAME.cmake
new file mode 100644
index 0000000..0fec8e8
--- /dev/null
+++ b/cmake/FindLAME.cmake
@@ -0,0 +1,13 @@
+
+find_path(LAME_INCLUDE_DIR lame/lame.h)
+
+find_library(LAME_LIBRARY NAMES lame mp3lame)
+
+find_package_handle_standard_args(LAME DEFAULT_MSG LAME_INCLUDE_DIR LAME_LIBRARY)
+
+if (LAME_FOUND)
+ set(LAME_LIBRARIES ${LAME_LIBRARY})
+ set(LAME_INCLUDE_DIRS ${LAME_INCLUDE_DIR})
+endif()
+
+mark_as_advanced(LAME_INCLUDE_DIR LAME_LIBRARY)