From e174c759182e11f85e221eff8684088eebd563a4 Mon Sep 17 00:00:00 2001 From: Richard Date: Sun, 9 Mar 2025 22:33:07 +0000 Subject: initial --- cmake/Modules/FindLame.cmake | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cmake/Modules/FindLame.cmake (limited to 'cmake/Modules/FindLame.cmake') 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) -- cgit v1.2.3