ee84197014
Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
39 lines
649 B
CMake
39 lines
649 B
CMake
|
|
set(SRCS
|
|
AesCfb128Decryptor.cpp
|
|
AesCfb128Encryptor.cpp
|
|
BlockingSslClientSocket.cpp
|
|
BufferedSslContext.cpp
|
|
CallbackSslContext.cpp
|
|
CtrDrbgContext.cpp
|
|
CryptoKey.cpp
|
|
EntropyContext.cpp
|
|
RsaPrivateKey.cpp
|
|
Sha1Checksum.cpp
|
|
SslConfig.cpp
|
|
SslContext.cpp
|
|
X509Cert.cpp
|
|
)
|
|
|
|
set(HDRS
|
|
AesCfb128Decryptor.h
|
|
AesCfb128Encryptor.h
|
|
BlockingSslClientSocket.h
|
|
BufferedSslContext.h
|
|
CallbackSslContext.h
|
|
CtrDrbgContext.h
|
|
CryptoKey.h
|
|
EntropyContext.h
|
|
ErrorCodes.h
|
|
RsaPrivateKey.h
|
|
SslConfig.h
|
|
SslContext.h
|
|
Sha1Checksum.h
|
|
X509Cert.h
|
|
)
|
|
|
|
if(NOT MSVC)
|
|
add_library(mbedTLS++ ${SRCS} ${HDRS})
|
|
target_link_libraries(mbedTLS++ fmt::fmt mbedtls)
|
|
endif()
|