1a8e1175bSopenharmony_ciset(executables_mbedtls 2a8e1175bSopenharmony_ci dh_client 3a8e1175bSopenharmony_ci dh_server 4a8e1175bSopenharmony_ci) 5a8e1175bSopenharmony_ci 6a8e1175bSopenharmony_ciforeach(exe IN LISTS executables_mbedtls) 7a8e1175bSopenharmony_ci add_executable(${exe} ${exe}.c $<TARGET_OBJECTS:mbedtls_test>) 8a8e1175bSopenharmony_ci target_link_libraries(${exe} ${mbedtls_target} ${CMAKE_THREAD_LIBS_INIT}) 9a8e1175bSopenharmony_ci target_include_directories(${exe} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../tests/include) 10a8e1175bSopenharmony_ciendforeach() 11a8e1175bSopenharmony_ci 12a8e1175bSopenharmony_ciset(executables_mbedcrypto 13a8e1175bSopenharmony_ci dh_genprime 14a8e1175bSopenharmony_ci ecdh_curve25519 15a8e1175bSopenharmony_ci ecdsa 16a8e1175bSopenharmony_ci gen_key 17a8e1175bSopenharmony_ci key_app 18a8e1175bSopenharmony_ci key_app_writer 19a8e1175bSopenharmony_ci mpi_demo 20a8e1175bSopenharmony_ci pk_encrypt 21a8e1175bSopenharmony_ci pk_decrypt 22a8e1175bSopenharmony_ci pk_sign 23a8e1175bSopenharmony_ci pk_verify 24a8e1175bSopenharmony_ci rsa_decrypt 25a8e1175bSopenharmony_ci rsa_encrypt 26a8e1175bSopenharmony_ci rsa_genkey 27a8e1175bSopenharmony_ci rsa_sign 28a8e1175bSopenharmony_ci rsa_sign_pss 29a8e1175bSopenharmony_ci rsa_verify 30a8e1175bSopenharmony_ci rsa_verify_pss 31a8e1175bSopenharmony_ci) 32a8e1175bSopenharmony_ci 33a8e1175bSopenharmony_ciforeach(exe IN LISTS executables_mbedcrypto) 34a8e1175bSopenharmony_ci add_executable(${exe} ${exe}.c $<TARGET_OBJECTS:mbedtls_test>) 35a8e1175bSopenharmony_ci target_link_libraries(${exe} ${mbedcrypto_target} ${CMAKE_THREAD_LIBS_INIT}) 36a8e1175bSopenharmony_ci target_include_directories(${exe} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../tests/include) 37a8e1175bSopenharmony_ciendforeach() 38a8e1175bSopenharmony_ci 39a8e1175bSopenharmony_ciinstall(TARGETS ${executables_mbedtls} ${executables_mbedcrypto} 40a8e1175bSopenharmony_ci DESTINATION "bin" 41a8e1175bSopenharmony_ci PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) 42