PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/cmake/FindXmlRpcEpi.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 48 lines | 30 code | 8 blank | 10 comment | 0 complexity | 7979b78162ff31a295a38c6c830480c8 MD5 | raw file
 1# -*- cmake -*-
 2
 3# - Find XMLRPC-EPI
 4# Find the XMLRPC-EPI includes and library
 5# This module defines
 6#  XMLRPCEPI_INCLUDE_DIR, where to find jpeglib.h, etc.
 7#  XMLRPCEPI_LIBRARIES, the libraries needed to use XMLRPC-EPI.
 8#  XMLRPCEPI_FOUND, If false, do not try to use XMLRPC-EPI.
 9# also defined, but not for general use are
10#  XMLRPCEPI_LIBRARY, where to find the XMLRPC-EPI library.
11
12FIND_PATH(XMLRPCEPI_INCLUDE_DIR xmlrpc-epi/xmlrpc.h
13/usr/local/include
14/usr/include
15)
16
17SET(XMLRPCEPI_NAMES ${XMLRPCEPI_NAMES} xmlrpc-epi)
18FIND_LIBRARY(XMLRPCEPI_LIBRARY
19  NAMES ${XMLRPCEPI_NAMES}
20  PATHS /usr/lib /usr/local/lib
21  )
22
23IF (XMLRPCEPI_LIBRARY AND XMLRPCEPI_INCLUDE_DIR)
24    SET(XMLRPCEPI_LIBRARIES ${XMLRPCEPI_LIBRARY})
25    SET(XMLRPCEPI_FOUND "YES")
26ELSE (XMLRPCEPI_LIBRARY AND XMLRPCEPI_INCLUDE_DIR)
27  SET(XMLRPCEPI_FOUND "NO")
28ENDIF (XMLRPCEPI_LIBRARY AND XMLRPCEPI_INCLUDE_DIR)
29
30
31IF (XMLRPCEPI_FOUND)
32   IF (NOT XMLRPCEPI_FIND_QUIETLY)
33      MESSAGE(STATUS "Found XMLRPC-EPI: ${XMLRPCEPI_LIBRARIES}")
34   ENDIF (NOT XMLRPCEPI_FIND_QUIETLY)
35ELSE (XMLRPCEPI_FOUND)
36   IF (XMLRPCEPI_FIND_REQUIRED)
37      MESSAGE(FATAL_ERROR "Could not find XMLRPC-EPI library")
38   ENDIF (XMLRPCEPI_FIND_REQUIRED)
39ENDIF (XMLRPCEPI_FOUND)
40
41# Deprecated declarations.
42SET (NATIVE_XMLRPCEPI_INCLUDE_PATH ${XMLRPCEPI_INCLUDE_DIR} )
43GET_FILENAME_COMPONENT (NATIVE_XMLRPCEPI_LIB_PATH ${XMLRPCEPI_LIBRARY} PATH)
44
45MARK_AS_ADVANCED(
46  XMLRPCEPI_LIBRARY
47  XMLRPCEPI_INCLUDE_DIR
48  )