2012-05-04 19:48:53 -04:00
|
|
|
# WinPR: Windows Portable Runtime
|
|
|
|
# libwinpr-sspi cmake build script
|
2012-02-17 17:12:21 -05:00
|
|
|
#
|
|
|
|
# Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2012-09-30 22:58:59 -04:00
|
|
|
set(MODULE_PREFIX "WINPR_SSPI")
|
|
|
|
|
|
|
|
set(${MODULE_PREFIX}_NTLM_SRCS
|
2012-03-18 20:30:20 -04:00
|
|
|
NTLM/ntlm_av_pairs.c
|
|
|
|
NTLM/ntlm_av_pairs.h
|
2012-02-25 09:55:52 -05:00
|
|
|
NTLM/ntlm_compute.c
|
|
|
|
NTLM/ntlm_compute.h
|
2012-02-23 21:26:00 -05:00
|
|
|
NTLM/ntlm_message.c
|
|
|
|
NTLM/ntlm_message.h
|
2012-03-05 16:57:25 -05:00
|
|
|
NTLM/ntlm.c
|
|
|
|
NTLM/ntlm.h)
|
|
|
|
|
2012-09-30 22:58:59 -04:00
|
|
|
set(${MODULE_PREFIX}_NEGOTIATE_SRCS
|
2012-03-05 17:03:49 -05:00
|
|
|
Negotiate/negotiate.c
|
|
|
|
Negotiate/negotiate.h)
|
2012-03-05 16:57:25 -05:00
|
|
|
|
2012-09-30 22:58:59 -04:00
|
|
|
set(${MODULE_PREFIX}_SCHANNEL_SRCS
|
2012-12-23 20:20:41 -05:00
|
|
|
Schannel/schannel_openssl.c
|
|
|
|
Schannel/schannel_openssl.h
|
2012-05-24 17:19:58 -04:00
|
|
|
Schannel/schannel.c
|
|
|
|
Schannel/schannel.h)
|
|
|
|
|
2012-09-30 22:58:59 -04:00
|
|
|
set(${MODULE_PREFIX}_CREDSSP_SRCS
|
2012-05-21 22:48:33 -04:00
|
|
|
CredSSP/credssp.c)
|
|
|
|
|
2012-09-30 22:58:59 -04:00
|
|
|
set(${MODULE_PREFIX}_SRCS
|
|
|
|
${${MODULE_PREFIX}_CREDSSP_SRCS}
|
2014-06-05 22:54:31 -04:00
|
|
|
sspi_winpr.c
|
|
|
|
sspi_winpr.h
|
2014-06-07 14:43:02 -04:00
|
|
|
sspi_export.c
|
2012-02-20 16:17:57 -05:00
|
|
|
sspi.c
|
2012-05-21 22:48:33 -04:00
|
|
|
sspi.h)
|
2012-02-17 17:12:21 -05:00
|
|
|
|
2014-07-10 00:03:20 +02:00
|
|
|
winpr_module_add(${${MODULE_PREFIX}_NTLM_SRCS}
|
2014-06-05 22:10:08 -04:00
|
|
|
${${MODULE_PREFIX}_KERBEROS_SRCS}
|
|
|
|
${${MODULE_PREFIX}_NEGOTIATE_SRCS}
|
|
|
|
${${MODULE_PREFIX}_SCHANNEL_SRCS}
|
|
|
|
${${MODULE_PREFIX}_SRCS})
|
2012-03-24 00:14:45 -04:00
|
|
|
|
2015-10-08 13:58:55 -04:00
|
|
|
if(OPENSSL_FOUND)
|
|
|
|
winpr_include_directory_add(${OPENSSL_INCLUDE_DIR})
|
|
|
|
winpr_library_add(${OPENSSL_LIBRARIES})
|
|
|
|
endif()
|
2012-02-20 21:56:55 -08:00
|
|
|
|
2015-10-08 13:58:55 -04:00
|
|
|
if(MBEDTLS_FOUND)
|
|
|
|
winpr_include_directory_add(${MBEDTLS_INCLUDE_DIR})
|
|
|
|
winpr_library_add(${MBEDTLS_LIBRARIES})
|
|
|
|
endif()
|
2012-02-17 17:12:21 -05:00
|
|
|
|
2012-09-21 19:28:47 -04:00
|
|
|
if(WIN32)
|
2014-07-10 00:03:20 +02:00
|
|
|
winpr_library_add(ws2_32)
|
2012-09-21 19:28:47 -04:00
|
|
|
endif()
|
|
|
|
|
2012-10-13 09:50:02 -04:00
|
|
|
if(BUILD_TESTING)
|
2012-09-30 20:15:42 -04:00
|
|
|
add_subdirectory(test)
|
|
|
|
endif()
|