PageRenderTime 34ms CodeModel.GetById 13ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. # - Find XMLRPC-EPI
  3. # Find the XMLRPC-EPI includes and library
  4. # This module defines
  5. # XMLRPCEPI_INCLUDE_DIR, where to find jpeglib.h, etc.
  6. # XMLRPCEPI_LIBRARIES, the libraries needed to use XMLRPC-EPI.
  7. # XMLRPCEPI_FOUND, If false, do not try to use XMLRPC-EPI.
  8. # also defined, but not for general use are
  9. # XMLRPCEPI_LIBRARY, where to find the XMLRPC-EPI library.
  10. FIND_PATH(XMLRPCEPI_INCLUDE_DIR xmlrpc-epi/xmlrpc.h
  11. /usr/local/include
  12. /usr/include
  13. )
  14. SET(XMLRPCEPI_NAMES ${XMLRPCEPI_NAMES} xmlrpc-epi)
  15. FIND_LIBRARY(XMLRPCEPI_LIBRARY
  16. NAMES ${XMLRPCEPI_NAMES}
  17. PATHS /usr/lib /usr/local/lib
  18. )
  19. IF (XMLRPCEPI_LIBRARY AND XMLRPCEPI_INCLUDE_DIR)
  20. SET(XMLRPCEPI_LIBRARIES ${XMLRPCEPI_LIBRARY})
  21. SET(XMLRPCEPI_FOUND "YES")
  22. ELSE (XMLRPCEPI_LIBRARY AND XMLRPCEPI_INCLUDE_DIR)
  23. SET(XMLRPCEPI_FOUND "NO")
  24. ENDIF (XMLRPCEPI_LIBRARY AND XMLRPCEPI_INCLUDE_DIR)
  25. IF (XMLRPCEPI_FOUND)
  26. IF (NOT XMLRPCEPI_FIND_QUIETLY)
  27. MESSAGE(STATUS "Found XMLRPC-EPI: ${XMLRPCEPI_LIBRARIES}")
  28. ENDIF (NOT XMLRPCEPI_FIND_QUIETLY)
  29. ELSE (XMLRPCEPI_FOUND)
  30. IF (XMLRPCEPI_FIND_REQUIRED)
  31. MESSAGE(FATAL_ERROR "Could not find XMLRPC-EPI library")
  32. ENDIF (XMLRPCEPI_FIND_REQUIRED)
  33. ENDIF (XMLRPCEPI_FOUND)
  34. # Deprecated declarations.
  35. SET (NATIVE_XMLRPCEPI_INCLUDE_PATH ${XMLRPCEPI_INCLUDE_DIR} )
  36. GET_FILENAME_COMPONENT (NATIVE_XMLRPCEPI_LIB_PATH ${XMLRPCEPI_LIBRARY} PATH)
  37. MARK_AS_ADVANCED(
  38. XMLRPCEPI_LIBRARY
  39. XMLRPCEPI_INCLUDE_DIR
  40. )