X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=CMakeLists.txt;h=15fe22d5024c4a6ee35657891fdcf42331c287b5;hb=ebb91ec8c33ce9f259d455605a884ffbd72996db;hp=f24f26c1d26f94e78131ae7c1eb9f8908c25ba1f;hpb=9128b0a98a8f89be2830eabca0cdc0b6b344172b;p=openssl-gost%2Fengine.git diff --git a/CMakeLists.txt b/CMakeLists.txt index f24f26c..15fe22d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -113,6 +113,11 @@ set(GOST_ENGINE_SOURCE_FILES gost_omac_acpkm.c ) +add_executable(test_context test_context.c) +target_link_libraries(test_context gost_engine gost_core ${OPENSSL_CRYPTO_LIBRARY}) +add_test(NAME context + COMMAND test_context) + add_executable(test_grasshopper test_grasshopper.c) target_link_libraries(test_grasshopper gost_engine gost_core ${OPENSSL_CRYPTO_LIBRARY}) add_test(NAME grasshopper @@ -143,6 +148,11 @@ set(GOST_12_SUM_SOURCE_FILES add_executable(gost12sum ${GOST_12_SUM_SOURCE_FILES}) target_link_libraries(gost12sum gost_core) +add_executable(unit_expimp gost_keyexpimp.c e_gost_err.c) +target_compile_definitions(unit_expimp PUBLIC -DENABLE_UNIT_TESTS) +target_compile_definitions(unit_expimp PUBLIC -DOPENSSL_LOAD_CONF) +target_link_libraries(unit_expimp PUBLIC ${OPENSSL_CRYPTO_LIBRARY}) + set_source_files_properties(tags PROPERTIES GENERATED true) add_custom_target(tags COMMAND ctags -R . ${OPENSSL_ROOT_DIR}