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>
33 lines
494 B
CMake
33 lines
494 B
CMake
include_directories(../include)
|
|
|
|
add_executable(
|
|
bssl
|
|
|
|
args.cc
|
|
ciphers.cc
|
|
client.cc
|
|
const.cc
|
|
digest.cc
|
|
file.cc
|
|
generate_ed25519.cc
|
|
genrsa.cc
|
|
pkcs12.cc
|
|
rand.cc
|
|
server.cc
|
|
sign.cc
|
|
speed.cc
|
|
tool.cc
|
|
transport_common.cc
|
|
)
|
|
|
|
if(APPLE OR WIN32 OR ANDROID)
|
|
target_link_libraries(bssl ssl crypto)
|
|
else()
|
|
find_library(FOUND_LIBRT rt)
|
|
if(FOUND_LIBRT)
|
|
target_link_libraries(bssl ssl crypto -lrt)
|
|
else()
|
|
target_link_libraries(bssl ssl crypto)
|
|
endif()
|
|
endif()
|