Added an option to disabled test building

This commit is contained in:
WolverinDEV 2019-07-04 17:50:20 +02:00
parent ad72bc7f72
commit 02889c87a0
2 changed files with 6 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
# Created by .ignore support plugin (hsz.mobi)
cmake-build-debug/
.idea/
out/

View File

@ -39,8 +39,11 @@ set(HEADERS
add_library(ed25519 STATIC ${SOURCE} ${HEADERS})
add_executable(ed25519_test test.c)
target_link_libraries(ed25519_test ed25519)
option(BUILD_TESTS "Build test" ON)
if (BUILD_TESTS)
add_executable(ed25519_test test.c)
target_link_libraries(ed25519_test ed25519)
endif ()
if(USE_OPENSSL)
target_link_libraries(ed25519_test crypto)