e6fd125d31
We currently write a mix of "if (FOO)" and "if(FOO)". While the former looks more like a usual language, CMake believes everything, even "if" and "else", is just a really really funny function call (a "command"). We should pick something for consistency. Upstream CMake writes "if(FOO)", so go with that one. Change-Id: I67e0eb650a52670110b417312a362c9f161c8721 Reviewed-on: https://boringssl-review.googlesource.com/30807 Reviewed-by: Adam Langley <agl@google.com>
61 lines
934 B
CMake
61 lines
934 B
CMake
include_directories(../include)
|
|
|
|
add_library(
|
|
ssl
|
|
|
|
bio_ssl.cc
|
|
d1_both.cc
|
|
d1_lib.cc
|
|
d1_pkt.cc
|
|
d1_srtp.cc
|
|
dtls_method.cc
|
|
dtls_record.cc
|
|
handoff.cc
|
|
handshake.cc
|
|
handshake_client.cc
|
|
handshake_server.cc
|
|
s3_both.cc
|
|
s3_lib.cc
|
|
s3_pkt.cc
|
|
ssl_aead_ctx.cc
|
|
ssl_asn1.cc
|
|
ssl_buffer.cc
|
|
ssl_cert.cc
|
|
ssl_cipher.cc
|
|
ssl_file.cc
|
|
ssl_key_share.cc
|
|
ssl_lib.cc
|
|
ssl_privkey.cc
|
|
ssl_session.cc
|
|
ssl_stat.cc
|
|
ssl_transcript.cc
|
|
ssl_versions.cc
|
|
ssl_x509.cc
|
|
t1_enc.cc
|
|
t1_lib.cc
|
|
tls_method.cc
|
|
tls_record.cc
|
|
tls13_both.cc
|
|
tls13_client.cc
|
|
tls13_enc.cc
|
|
tls13_server.cc
|
|
)
|
|
|
|
target_link_libraries(ssl crypto)
|
|
|
|
add_executable(
|
|
ssl_test
|
|
|
|
span_test.cc
|
|
ssl_test.cc
|
|
|
|
$<TARGET_OBJECTS:boringssl_gtest_main>
|
|
$<TARGET_OBJECTS:test_support>
|
|
)
|
|
|
|
target_link_libraries(ssl_test ssl crypto boringssl_gtest)
|
|
if(WIN32)
|
|
target_link_libraries(ssl_test ws2_32)
|
|
endif()
|
|
add_dependencies(all_tests ssl_test)
|