FindGloox.cmake 862 Bytes
Newer Older
Linus Jahn's avatar
Linus Jahn committed
1 2 3 4
# - Try to find GLOOX
# Find GLOOX headers, libraries and the answer to all questions.
#
#  GLOOX_FOUND               True if gloox got found
5
#  GLOOX_INCLUDE_DIR         Location of gloox headers
Linus Jahn's avatar
Linus Jahn committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19
#  GLOOX_LIBRARIES           List of libaries to use gloox 
#
# Copyright (c) 2009 Nigmatullin Ruslan <euroelessar@gmail.com>
#
#  Redistribution and use is allowed according to the terms of the New
#  BSD license.
#  For details see the accompanying COPYING-CMAKE-SCRIPTS file.
#

FIND_PATH( GLOOX_INCLUDE_DIR "gloox/gloox.h" )
FIND_LIBRARY( GLOOX_LIBRARIES gloox )

if( GLOOX_LIBRARIES AND GLOOX_INCLUDE_DIR )
	message( STATUS "Found gloox: ${GLOOX_LIBRARIES}" )
20
	include_directories(${GLOOX_INCLUDE_DIR})
Linus Jahn's avatar
Linus Jahn committed
21 22 23 24
	set( GLOOX_FOUND 1 )
else( GLOOX_LIBRARIES AND GLOOX_INCLUDE_DIR )
	message( STATUS "Could NOT find gloox" )
endif( GLOOX_LIBRARIES AND GLOOX_INCLUDE_DIR )