CMake cryptest binary is now named "cryptest.exe" on all platforms.

This commit is contained in:
Alexander Shishenko 2016-06-21 16:13:47 +03:00
parent 7cdf2ca0e9
commit 2bb736576e
No known key found for this signature in database
GPG Key ID: 5165F41B94E12C76

View File

@ -238,6 +238,15 @@ if(BUILD_TESTING)
add_executable(cryptest ${cryptopp_SOURCES_TEST})
target_link_libraries(cryptest cryptopp-static)
# Setting "cryptest" binary name to "cryptest.exe"
if(NOT WIN32)
set_target_properties(cryptest PROPERTIES OUTPUT_NAME cryptest.exe)
endif()
if(NOT TARGET cryptest.exe)
add_custom_target(cryptest.exe)
add_dependencies(cryptest.exe cryptest)
endif()
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/TestData DESTINATION ${PROJECT_BINARY_DIR})
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/TestVectors DESTINATION ${PROJECT_BINARY_DIR})