Warning, /multimedia/amarok/cmake/modules/FindLoudmouth.cmake is written in an unsupported language. File is not indexed.

0001 # - Try to find the loudmouth library
0002 # Once done this will define
0003 #
0004 #  LOUDMOUTH_FOUND - system has libgpod
0005 #  LOUDMOUTH_INCLUDE_DIRS - the libgpod include directory
0006 #  LOUDMOUTH_LIBRARIES - Link these to use libgpod
0007 #  LOUDMOUTH_DEFINITIONS - Compiler switches required for using libgpod
0008 #
0009 
0010 if (LOUDMOUTH_INCLUDE_DIRS AND LOUDMOUTH_LIBRARIES)
0011 
0012   # in cache already
0013   set(LOUDMOUTH_FOUND TRUE)
0014 
0015 else ()
0016   if(NOT WIN32)
0017     # use pkg-config to get the directories and then use these values
0018     # in the FIND_PATH() and FIND_LIBRARY() calls
0019     find_package(PkgConfig)
0020     pkg_search_module(LOUDMOUTH loudmouth-1.0)
0021   
0022   else()
0023 
0024     find_path(LOUDMOUTH_INCLUDE_DIRS loudmouth/loudmouth.h /usr/include/loudmouth-1.0
0025       ${_LOUDMOUTHIncDir}
0026     )
0027   
0028     find_library(LOUDMOUTH_LIBRARIES NAMES loudmouth-1
0029       PATHS
0030       ${_LOUDMOUTHLinkDir}
0031     )
0032 
0033   endif()
0034 
0035   if (LOUDMOUTH_INCLUDE_DIRS AND LOUDMOUTH_LIBRARIES)
0036     set(LOUDMOUTH_FOUND TRUE)
0037   else ()
0038     set(LOUDMOUTH_FOUND_FALSE)
0039   endif ()
0040 
0041   include(FindPackageHandleStandardArgs)
0042   find_package_handle_standard_args(Loudmouth DEFAULT_MSG LOUDMOUTH_INCLUDE_DIRS LOUDMOUTH_LIBRARIES )
0043  
0044   mark_as_advanced(LOUDMOUTH_INCLUDE_DIRS LOUDMOUTH_LIBRARIES)
0045   
0046 endif ()