diff options
author | kinichiro <kinichiro.inoguchi@gmail.com> | 2020-05-19 01:23:57 +0900 |
---|---|---|
committer | kinichiro <kinichiro.inoguchi@gmail.com> | 2020-05-19 01:23:57 +0900 |
commit | e8033def444cddd1cfc0ccc334fa333ad13699fb (patch) | |
tree | 50781f28d1ae02434e8826397f22423c4350db61 /tests | |
parent | 3b5ae00b00ce25ac6b406f1bef539cd26d6edf33 (diff) | |
download | portable-e8033def444cddd1cfc0ccc334fa333ad13699fb.tar.gz portable-e8033def444cddd1cfc0ccc334fa333ad13699fb.tar.bz2 portable-e8033def444cddd1cfc0ccc334fa333ad13699fb.zip |
Build regress servertest only if non BUILD_SHARED_LIBS with cmake
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index ed63f06..787c955 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -386,14 +386,16 @@ target_link_libraries(rsa_test ${OPENSSL_LIBS}) | |||
386 | add_test(rsa_test rsa_test) | 386 | add_test(rsa_test rsa_test) |
387 | 387 | ||
388 | # servertest | 388 | # servertest |
389 | add_executable(servertest servertest.c) | 389 | if(NOT BUILD_SHARED_LIBS) |
390 | target_link_libraries(servertest ${OPENSSL_LIBS}) | 390 | add_executable(servertest servertest.c) |
391 | if(NOT MSVC) | 391 | target_link_libraries(servertest ${OPENSSL_LIBS}) |
392 | add_test(NAME servertest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/servertest.sh) | 392 | if(NOT MSVC) |
393 | else() | 393 | add_test(NAME servertest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/servertest.sh) |
394 | add_test(NAME servertest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/servertest.bat $<TARGET_FILE:servertest>) | 394 | else() |
395 | add_test(NAME servertest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/servertest.bat $<TARGET_FILE:servertest>) | ||
396 | endif() | ||
397 | set_tests_properties(servertest PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") | ||
395 | endif() | 398 | endif() |
396 | set_tests_properties(servertest PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") | ||
397 | 399 | ||
398 | # sha1test | 400 | # sha1test |
399 | add_executable(sha1test sha1test.c) | 401 | add_executable(sha1test sha1test.c) |