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

0001 # - Try to find the libgpod library
0002 # Once done this will define
0003 #
0004 #  IPOD_FOUND - system has libgpod
0005 #  IPOD_INCLUDE_DIRS - the libgpod include directory
0006 #  IPOD_LIBRARIES - Link these to use libgpod
0007 #  IPOD_CFLAGS - Compiler switches required for using libgpod
0008 #  IPOD_VERSION - Version number of libgpod
0009 #
0010 
0011 if (IPOD_INCLUDE_DIRS AND IPOD_LIBRARIES)
0012 
0013   # in cache already
0014   set(IPOD_FOUND TRUE)
0015 
0016 else ()
0017   if(NOT WIN32)
0018     # use pkg-config to get the directories and then use these values
0019     # in the FIND_PATH() and FIND_LIBRARY() calls
0020     find_package(PkgConfig)
0021     pkg_search_module(IPOD libgpod-1.0)
0022   else()
0023     find_path(IPOD_INCLUDE_DIRS
0024     NAMES
0025     gpod/itdb.h
0026     PATH_SUFFIXES gpod-1.0
0027     )
0028     
0029     find_library(IPOD_LIBRARIES NAMES
0030     gpod libgpod gpod-4 libgpod-4
0031     )
0032     if(IPOD_INCLUDE_DIRS AND IPOD_LIBRARIES)
0033        set(IPOD_FOUND ON)
0034     endif()
0035   endif()
0036   if (IPOD_FOUND)
0037      if (NOT IPOD_FIND_QUIETLY)
0038         message(STATUS "Found libgpod-1 ${IPOD_VERSION}")
0039      endif ()
0040   else ()
0041      if (IPOD_FIND_REQUIRED)
0042         message(FATAL_ERROR "Could NOT find libgpod-1, check FindPkgConfig output above!")
0043      endif ()
0044   endif ()
0045 
0046   mark_as_advanced(IPOD_INCLUDE_DIRS)
0047 
0048 endif ()