diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/Findmp3lame.cmake (renamed from cmake/modules/FindLAME.cmake) | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/cmake/modules/FindLAME.cmake b/cmake/modules/Findmp3lame.cmake index 0f52fe45ab..e7afe49774 100644 --- a/cmake/modules/FindLAME.cmake +++ b/cmake/modules/Findmp3lame.cmake @@ -4,8 +4,8 @@ # later version. See the LICENSE file for details. #[=======================================================================[.rst: -FindLAME --------- +Findmp3lame +----------- Finds the LAME library. @@ -14,7 +14,7 @@ Imported Targets This module provides the following imported targets, if found: -``LAME::LAME`` +``mp3lame::mp3lame`` The LAME library Result Variables @@ -22,11 +22,11 @@ Result Variables This will define the following variables: -``LAME_FOUND`` +``mp3lame_FOUND`` True if the system has the LAME library. -``LAME_INCLUDE_DIRS`` +``mp3lame_INCLUDE_DIRS`` Include directories needed to use LAME. -``LAME_LIBRARIES`` +``mp3lame_LIBRARIES`` Libraries needed to link to LAME. Cache Variables @@ -34,42 +34,42 @@ Cache Variables The following cache variables may also be set: -``LAME_INCLUDE_DIR`` +``mp3lame_INCLUDE_DIR`` The directory containing ``lame/lame.h``. -``LAME_LIBRARY`` +``mp3lame_LIBRARY`` The path to the LAME library. #]=======================================================================] -find_path(LAME_INCLUDE_DIR +find_path(mp3lame_INCLUDE_DIR NAMES lame/lame.h DOC "LAME include directory") -mark_as_advanced(LAME_INCLUDE_DIR) +mark_as_advanced(mp3lame_INCLUDE_DIR) -find_library(LAME_LIBRARY +find_library(mp3lame_LIBRARY NAMES mp3lame mp3lame-static DOC "LAME library" ) -mark_as_advanced(LAME_LIBRARY) +mark_as_advanced(mp3lame_LIBRARY) include(FindPackageHandleStandardArgs) find_package_handle_standard_args( - LAME + mp3lame DEFAULT_MSG - LAME_LIBRARY - LAME_INCLUDE_DIR + mp3lame_LIBRARY + mp3lame_INCLUDE_DIR ) -if(LAME_FOUND) - set(LAME_LIBRARIES "${LAME_LIBRARY}") - set(LAME_INCLUDE_DIRS "${LAME_INCLUDE_DIR}") +if(mp3lame_FOUND) + set(mp3lame_LIBRARIES "${mp3lame_LIBRARY}") + set(mp3lame_INCLUDE_DIRS "${mp3lame_INCLUDE_DIR}") - if(NOT TARGET LAME::LAME) - add_library(LAME::LAME UNKNOWN IMPORTED) - set_target_properties(LAME::LAME + if(NOT TARGET mp3lame::mp3lame) + add_library(mp3lame::mp3lame UNKNOWN IMPORTED) + set_target_properties(mp3lame::mp3lame PROPERTIES - IMPORTED_LOCATION "${LAME_LIBRARY}" - INTERFACE_INCLUDE_DIRECTORIES "${LAME_INCLUDE_DIR}" + IMPORTED_LOCATION "${mp3lame_LIBRARY}" + INTERFACE_INCLUDE_DIRECTORIES "${mp3lame_INCLUDE_DIR}" ) endif() endif() |