2014-04-24 15:51:39 -04:00
|
|
|
cmake_minimum_required (VERSION 2.6)
|
|
|
|
project (MCServer)
|
|
|
|
|
|
|
|
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
|
|
|
|
|
|
|
set(SOURCES
|
2014-04-29 11:37:15 -04:00
|
|
|
AesCfb128Decryptor.cpp
|
|
|
|
AesCfb128Encryptor.cpp
|
|
|
|
BlockingSslClientSocket.cpp
|
|
|
|
BufferedSslContext.cpp
|
|
|
|
CallbackSslContext.cpp
|
|
|
|
CtrDrbgContext.cpp
|
2014-05-01 12:06:23 -04:00
|
|
|
CryptoKey.cpp
|
2014-04-29 11:37:15 -04:00
|
|
|
EntropyContext.cpp
|
|
|
|
RsaPrivateKey.cpp
|
|
|
|
Sha1Checksum.cpp
|
|
|
|
SslContext.cpp
|
|
|
|
X509Cert.cpp
|
2014-04-24 15:51:39 -04:00
|
|
|
)
|
|
|
|
|
2014-04-27 16:27:53 -04:00
|
|
|
set(HEADERS
|
2014-04-29 11:37:15 -04:00
|
|
|
AesCfb128Decryptor.h
|
|
|
|
AesCfb128Encryptor.h
|
|
|
|
BlockingSslClientSocket.h
|
|
|
|
BufferedSslContext.h
|
|
|
|
CallbackSslContext.h
|
|
|
|
CtrDrbgContext.h
|
2014-05-01 12:06:23 -04:00
|
|
|
CryptoKey.h
|
2014-04-29 11:37:15 -04:00
|
|
|
EntropyContext.h
|
|
|
|
RsaPrivateKey.h
|
|
|
|
SslContext.h
|
|
|
|
Sha1Checksum.h
|
|
|
|
X509Cert.h
|
2014-04-27 16:27:53 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library(PolarSSL++ ${SOURCES} ${HEADERS})
|
2014-04-24 15:51:39 -04:00
|
|
|
|
|
|
|
if (UNIX)
|
|
|
|
target_link_libraries(PolarSSL++ polarssl)
|
|
|
|
endif()
|