diff --git a/.gitignore b/.gitignore index b0601f8..bdc45bd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ # Created by .ignore support plugin (hsz.mobi) cmake-build-debug/ .idea/ +out/ \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 60a5cf9..d52ebb6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)