-
Notifications
You must be signed in to change notification settings - Fork 13
/
FindGSASL.cmake
28 lines (26 loc) · 1008 Bytes
/
FindGSASL.cmake
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 OR GSASL_INCLUDEDIR ) )
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 )