Warning, /network/kget/cmake/modules/FindLibMms.cmake is written in an unsupported language. File is not indexed.

0001 # - Try to find the libmms library
0002 # Once done this will define
0003 #
0004 #  LIBMMS_FOUND - system has libmms
0005 #  LIBMMS_INCLUDE_DIR - the libmms include directory
0006 #  LIBMMS_LIBRARIES - Link these to use libmms
0007 
0008 # Copyright (c) 2007 Joris Guisson <joris.guisson@gmail.com>
0009 # Copyright (c) 2007 Charles Connell <charles@connells.org> (This was based upon FindKopete.cmake)
0010 #
0011 # Redistribution and use is allowed according to the terms of the BSD license.
0012 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
0013 
0014 if(LIBMMS_INCLUDE_DIR AND LIBMMS_LIBRARIES)
0015 
0016   # read from cache
0017   set(LIBMMS_FOUND TRUE)
0018 
0019 else(LIBMMS_INCLUDE_DIR AND LIBMMS_LIBRARIES)
0020 
0021   FIND_PATH(LIBMMS_INCLUDE_DIR 
0022     NAMES
0023     mmsx.h
0024     PATHS
0025     ${INCLUDE_INSTALL_DIR}
0026     PATH_SUFFIXES
0027     libmms
0028     )
0029   
0030   FIND_LIBRARY(LIBMMS_LIBRARIES 
0031     NAMES
0032     mms
0033     PATHS
0034     ${LIB_INSTALL_DIR}
0035     )
0036   if(LIBMMS_INCLUDE_DIR AND LIBMMS_LIBRARIES)
0037     set(LIBMMS_FOUND TRUE)
0038   endif(LIBMMS_INCLUDE_DIR AND LIBMMS_LIBRARIES)
0039 
0040   if(LIBMMS_FOUND)
0041     if(NOT LIBKTORRENT_FIND_QUIETLY)
0042       message(STATUS "Found libmms: ${LIBMMS_LIBRARIES} ")
0043     endif(NOT LIBKTORRENT_FIND_QUIETLY)
0044   else(LIBMMS_FOUND)
0045     if(LIBKTORRENT_FIND_REQUIRED)
0046       if(NOT LIBMMS_INCLUDE_DIR)
0047     message(FATAL_ERROR "Could not find libmms includes.")
0048       endif(NOT LIBMMS_INCLUDE_DIR)
0049       if(NOT LIBMMS_LIBRARIES)
0050     message(FATAL_ERROR "Could not find libmms library.")
0051       endif(NOT LIBMMS_LIBRARIES)
0052     else(LIBKTORRENT_FIND_REQUIRED)
0053       if(NOT LIBMMS_INCLUDE_DIR)
0054         message(STATUS "Could not find libmms includes.")
0055       endif(NOT LIBMMS_INCLUDE_DIR)
0056       if(NOT LIBMMS_LIBRARIES)
0057         message(STATUS "Could not find libmms library.")
0058       endif(NOT LIBMMS_LIBRARIES)
0059     endif(LIBKTORRENT_FIND_REQUIRED)
0060   endif(LIBMMS_FOUND)
0061 
0062 endif(LIBMMS_INCLUDE_DIR AND LIBMMS_LIBRARIES)