Use sources.cmake for the bssl tool Bug: 542 Change-Id: I94684f2398a28792cc0a31c8e776eecac8cc3cba Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/61305 Commit-Queue: David Benjamin <davidben@google.com> Reviewed-by: Bob Beck <bbe@google.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f3eb37..1529526 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -515,7 +515,6 @@ add_subdirectory(crypto) add_subdirectory(ssl) add_subdirectory(ssl/test) -add_subdirectory(tool) add_subdirectory(util/fipstools) add_subdirectory(util/fipstools/acvp/modulewrapper) add_subdirectory(decrepit) @@ -572,12 +571,17 @@ CXX_STANDARD_REQUIRED YES COMPILE_FLAGS "${PKI_CXX_FLAGS}") +add_executable(bssl ${BSSL_SOURCES}) +install_if_enabled(TARGETS bssl DESTINATION ${INSTALL_DESTINATION_DEFAULT}) +target_link_libraries(bssl ssl crypto) + # Historically, targets were built in subdirectories. For compatibility with # existing tools, we, for now, copy the targets into the subdirectories. This # will be removed sometime in 2024. copy_post_build(crypto crypto_test urandom_test) copy_post_build(ssl ssl_test) copy_post_build(decrepit decrepit_test) +copy_post_build(tool bssl) if(FUZZ) if(LIBFUZZER_FROM_DEPS)