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

/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
15FIND_PATH( GLOOX_INCLUDE_DIR "gloox/gloox.h" )
16FIND_LIBRARY( GLOOX_LIBRARIES gloox )
17
18if( GLOOX_LIBRARIES AND GLOOX_INCLUDE_DIR )
19	message( STATUS "Found gloox: ${GLOOX_LIBRARIES}" )
20	set( GLOOX_FOUND 1 )
21else( GLOOX_LIBRARIES AND GLOOX_INCLUDE_DIR )
22	message( STATUS "Could NOT find gloox" )
23endif( GLOOX_LIBRARIES AND GLOOX_INCLUDE_DIR )