File: FindGSASL.cmake

package info (click to toggle)
jreen 1.2.0%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,932 kB
  • sloc: cpp: 31,281; makefile: 14
file content (28 lines) | stat: -rw-r--r-- 984 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# - Try to find GSASL 
# Find GSASL headers, libraries and the answer to all questions.
#
#  GSASL_FOUND               True if libgsasl got found
#  GSASL_INCLUDE_DIRS        Location of libgsasl headers 
#  GSASL_LIBRARIES           List of libaries to use libgsasl 
#
# 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.
#

if( WIN32 )
	FIND_PATH( GSASL_INCLUDE_DIRS gsasl.h $ENV{INCLUDE} )
	FIND_LIBRARY( GSASL_LIBRARIES libgsasl libgsasl-7 libgsasl-8 $ENV{LIB} )
else( )
	FIND_PACKAGE(PkgConfig)
	PKG_SEARCH_MODULE(GSASL REQUIRED libgsasl)
endif( )

if( GSASL_LIBRARIES AND GSASL_INCLUDE_DIRS )
	message( STATUS "Found libgsasl: ${GSASL_LIBRARIES}" )
	set( GSASL_FOUND true )
else( GSASL_LIBRARIES AND GSASL_INCLUDE_DIRS )
	message( STATUS "Could NOT find libgsasl" )
endif( GSASL_LIBRARIES AND GSASL_INCLUDE_DIRS )