boringssl/crypto/dh/CMakeLists.txt
David Benjamin e8f783ac0d Unwind DH_METHOD and DSA_METHOD.
This will allow a static linker (with -ffunction-sections since things aren't
split into files) to drop unused parts of DH and DSA. Notably, the parameter
generation bits pull in primality-checking code.

Change-Id: I25087e4cb91bc9d0ab43bcb267c2e2c164e56b59
Reviewed-on: https://boringssl-review.googlesource.com/6388
Reviewed-by: Adam Langley <agl@google.com>
2015-11-03 22:54:36 +00:00

24 lines
259 B
CMake

include_directories(../../include)
add_library(
dh
OBJECT
dh.c
params.c
check.c
dh_asn1.c
)
add_executable(
dh_test
dh_test.cc
$<TARGET_OBJECTS:test_support>
)
target_link_libraries(dh_test crypto)
add_dependencies(all_tests dh_test)