Improve wolfcrypt test/bench library comments.

These can be built as shared libraries, too, so the comments shouldn't be
specific about static libraries.
This commit is contained in:
Hayden Roche
2021-09-25 10:30:01 -07:00
parent 9634a54b8f
commit 302938d3c6

View File

@ -1514,18 +1514,18 @@ endif()
if(WOLFSSL_CRYPT_TESTS) if(WOLFSSL_CRYPT_TESTS)
if(WOLFSSL_CRYPT_TESTS_LIBS) if(WOLFSSL_CRYPT_TESTS_LIBS)
# Build wolfCrypt test as a static library. This will compile test.c # Build wolfCrypt test as a library. This will compile test.c and make
# and make its functions available as a CMake target that other CMake # its functions available as a CMake target that other CMake targets can
# targets can pull in, in addition to producing the static library # pull in, in addition to producing the library itself. Note that this
# itself. Note that this feature is not enabled by default, and the API # feature is not enabled by default, and the API of this library and
# of this library and wofcryptbench_lib should NOT be treated as stable. # wofcryptbench_lib should NOT be treated as stable.
add_library(wolfcrypttest_lib add_library(wolfcrypttest_lib
${CMAKE_CURRENT_SOURCE_DIR}/wolfcrypt/test/test.c) ${CMAKE_CURRENT_SOURCE_DIR}/wolfcrypt/test/test.c)
set_target_properties(wolfcrypttest_lib PROPERTIES OUTPUT_NAME "wolfcrypttest") set_target_properties(wolfcrypttest_lib PROPERTIES OUTPUT_NAME "wolfcrypttest")
target_link_libraries(wolfcrypttest_lib wolfssl) target_link_libraries(wolfcrypttest_lib wolfssl)
target_compile_options(wolfcrypttest_lib PRIVATE "-DNO_MAIN_DRIVER") target_compile_options(wolfcrypttest_lib PRIVATE "-DNO_MAIN_DRIVER")
# Make another static library for the wolfCrypt benchmark code. # Make another library for the wolfCrypt benchmark code.
add_library(wolfcryptbench_lib add_library(wolfcryptbench_lib
${CMAKE_CURRENT_SOURCE_DIR}/wolfcrypt/benchmark/benchmark.c) ${CMAKE_CURRENT_SOURCE_DIR}/wolfcrypt/benchmark/benchmark.c)
set_target_properties(wolfcryptbench_lib PROPERTIES OUTPUT_NAME "wolfcryptbench") set_target_properties(wolfcryptbench_lib PROPERTIES OUTPUT_NAME "wolfcryptbench")