add_definitions(-D_CRT_SECURE_NO_WARNINGS)
add_definitions(-D_CRT_DEPRECATED_NO_WARNINGS)
add_definitions(-D_CRT_NONSTDC_NO_WARNINGS)
- add_compile_options(/MP /WX /W4 /wd4100 /wd4267 /wd4206 /wd4706 /wd4244 /wd4115)
+ add_compile_options(/MP /WX /W4 /wd4100 /wd4267 /wd4206 /wd4706 /wd4244 /wd4115 /wd4996)
endif()
if (ASAN)
set(SKIP_PERL_TESTS 1)
endif()
-# DEPRECATEDIN_3_0 CMAC
-set_source_files_properties(gost_omac.c PROPERTIES COMPILE_FLAGS -Wno-error=deprecated-declarations)
-# DEPRECATEDIN_3_0 HMAC
-set_source_files_properties(gost_keyexpimp.c PROPERTIES COMPILE_FLAGS -Wno-error=deprecated-declarations)
-
set(CMAKE_C_STANDARD 90)
CHECK_FUNCTION_EXISTS(clock_gettime HAVE_CLOCK_GETTIME_C)
CHECK_LIBRARY_EXISTS(rt clock_gettime "" HAVE_CLOCK_GETTIME_RT)
set_tests_properties(sign/verify-with-engine
PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT_ENGINE}")
-add_executable(test_tls test_tls.c)
-target_link_libraries(test_tls OpenSSL::SSL)
-add_test(NAME TLS-with-engine COMMAND test_tls)
-set_tests_properties(TLS-with-engine
- PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT_ENGINE}")
+if(NOT MSVC)
+ add_executable(test_tls test_tls.c)
+ target_link_libraries(test_tls OpenSSL::SSL)
+ add_test(NAME TLS-with-engine COMMAND test_tls)
+ set_tests_properties(TLS-with-engine
+ PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT_ENGINE}")
+endif()
add_executable(test_context test_context.c)
target_link_libraries(test_context OpenSSL::Crypto)
endif()
endif()
-add_executable(sign benchmark/sign.c)
-target_link_libraries(sign gost_core gost_err ${CLOCK_GETTIME_LIB})
+if(NOT MSVC)
+ add_executable(sign benchmark/sign.c)
+ target_link_libraries(sign gost_core gost_err ${CLOCK_GETTIME_LIB})
+endif()
# All that may need to load just built engine will have path to it defined.
set(BINARY_TESTS_TARGETS
test_context
test_keyexpimp
test_gost89
- test_tls
)
+if(NOT MSVC)
+ list(APPEND BINARY_TESTS_TARGETS test_tls)
+endif()
set_property(TARGET ${BINARY_TESTS_TARGETS} APPEND PROPERTY COMPILE_DEFINITIONS ENGINE_DIR="${OUTPUT_DIRECTORY}")
add_library(gost_core STATIC ${GOST_LIB_SOURCE_FILES})