Added an option to disabled test building
This commit is contained in:
parent
ad72bc7f72
commit
02889c87a0
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
# Created by .ignore support plugin (hsz.mobi)
|
||||
cmake-build-debug/
|
||||
.idea/
|
||||
out/
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user