2012-05-05 03:48:53 +04:00
|
|
|
# WinPR: Windows Portable Runtime
|
|
|
|
# libwinpr-sspi cmake build script
|
2012-02-18 02:12:21 +04: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-10-01 06:58:59 +04:00
|
|
|
set(MODULE_PREFIX "WINPR_SSPI")
|
|
|
|
|
|
|
|
set(${MODULE_PREFIX}_NTLM_SRCS
|
2012-03-19 04:30:20 +04:00
|
|
|
NTLM/ntlm_av_pairs.c
|
|
|
|
NTLM/ntlm_av_pairs.h
|
2012-02-25 18:55:52 +04:00
|
|
|
NTLM/ntlm_compute.c
|
|
|
|
NTLM/ntlm_compute.h
|
2012-02-24 06:26:00 +04:00
|
|
|
NTLM/ntlm_message.c
|
|
|
|
NTLM/ntlm_message.h
|
2012-03-06 01:57:25 +04:00
|
|
|
NTLM/ntlm.c
|
|
|
|
NTLM/ntlm.h)
|
|
|
|
|
2012-10-01 06:58:59 +04:00
|
|
|
set(${MODULE_PREFIX}_NEGOTIATE_SRCS
|
2012-03-06 02:03:49 +04:00
|
|
|
Negotiate/negotiate.c
|
|
|
|
Negotiate/negotiate.h)
|
2012-03-06 01:57:25 +04:00
|
|
|
|
2012-10-01 06:58:59 +04:00
|
|
|
set(${MODULE_PREFIX}_SCHANNEL_SRCS
|
2012-12-24 05:20:41 +04:00
|
|
|
Schannel/schannel_openssl.c
|
|
|
|
Schannel/schannel_openssl.h
|
2012-05-25 01:19:58 +04:00
|
|
|
Schannel/schannel.c
|
|
|
|
Schannel/schannel.h)
|
|
|
|
|
2012-10-01 06:58:59 +04:00
|
|
|
set(${MODULE_PREFIX}_CREDSSP_SRCS
|
2012-05-22 06:48:33 +04:00
|
|
|
CredSSP/credssp.c)
|
|
|
|
|
2012-10-01 06:58:59 +04:00
|
|
|
set(${MODULE_PREFIX}_SRCS
|
|
|
|
${${MODULE_PREFIX}_CREDSSP_SRCS}
|
2014-06-06 06:54:31 +04:00
|
|
|
sspi_winpr.c
|
|
|
|
sspi_winpr.h
|
2014-06-07 22:43:02 +04:00
|
|
|
sspi_export.c
|
2012-02-21 01:17:57 +04:00
|
|
|
sspi.c
|
2012-05-22 06:48:33 +04:00
|
|
|
sspi.h)
|
2012-02-18 02:12:21 +04:00
|
|
|
|
2014-07-10 02:03:20 +04:00
|
|
|
winpr_module_add(${${MODULE_PREFIX}_NTLM_SRCS}
|
2014-06-06 06:10:08 +04:00
|
|
|
${${MODULE_PREFIX}_KERBEROS_SRCS}
|
|
|
|
${${MODULE_PREFIX}_NEGOTIATE_SRCS}
|
|
|
|
${${MODULE_PREFIX}_SCHANNEL_SRCS}
|
|
|
|
${${MODULE_PREFIX}_SRCS})
|
2012-03-24 08:14:45 +04:00
|
|
|
|
2015-10-08 20:58:55 +03:00
|
|
|
if(OPENSSL_FOUND)
|
|
|
|
winpr_include_directory_add(${OPENSSL_INCLUDE_DIR})
|
|
|
|
winpr_library_add(${OPENSSL_LIBRARIES})
|
|
|
|
endif()
|
2012-02-21 09:56:55 +04:00
|
|
|
|
2015-10-08 20:58:55 +03:00
|
|
|
if(MBEDTLS_FOUND)
|
|
|
|
winpr_include_directory_add(${MBEDTLS_INCLUDE_DIR})
|
|
|
|
winpr_library_add(${MBEDTLS_LIBRARIES})
|
|
|
|
endif()
|
2012-02-18 02:12:21 +04:00
|
|
|
|
2012-09-22 03:28:47 +04:00
|
|
|
if(WIN32)
|
2014-07-10 02:03:20 +04:00
|
|
|
winpr_library_add(ws2_32)
|
2012-09-22 03:28:47 +04:00
|
|
|
endif()
|
|
|
|
|
2012-10-13 17:50:02 +04:00
|
|
|
if(BUILD_TESTING)
|
2012-10-01 04:15:42 +04:00
|
|
|
add_subdirectory(test)
|
|
|
|
endif()
|