/CMakeModules/FindGloox.cmake

http://github.com/tomahawk-player/tomahawk · CMake · 23 lines · 8 code · 2 blank · 13 comment · 1 complexity · 1a03eaf0d99e3c8dfaeace026c0c138f MD5 · raw file

  1. # - Try to find GLOOX
  2. # Find GLOOX headers, libraries and the answer to all questions.
  3. #
  4. # GLOOX_FOUND True if gloox got found
  5. # GLOOX_INCLUDE_DIR Location of gloox headers
  6. # GLOOX_LIBRARIES List of libaries to use gloox
  7. #
  8. # Copyright (c) 2009 Nigmatullin Ruslan <euroelessar@gmail.com>
  9. #
  10. # Redistribution and use is allowed according to the terms of the New
  11. # BSD license.
  12. # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
  13. #
  14. FIND_PATH( GLOOX_INCLUDE_DIR "gloox/gloox.h" )
  15. FIND_LIBRARY( GLOOX_LIBRARIES gloox )
  16. if( GLOOX_LIBRARIES AND GLOOX_INCLUDE_DIR )
  17. message( STATUS "Found gloox: ${GLOOX_LIBRARIES}" )
  18. set( GLOOX_FOUND 1 )
  19. else( GLOOX_LIBRARIES AND GLOOX_INCLUDE_DIR )
  20. message( STATUS "Could NOT find gloox" )
  21. endif( GLOOX_LIBRARIES AND GLOOX_INCLUDE_DIR )