1a8e1175bSopenharmony_ciset(libs
2a8e1175bSopenharmony_ci    ${mbedcrypto_target}
3a8e1175bSopenharmony_ci)
4a8e1175bSopenharmony_ci
5a8e1175bSopenharmony_ciset(executables
6a8e1175bSopenharmony_ci    pem2der
7a8e1175bSopenharmony_ci    strerror
8a8e1175bSopenharmony_ci)
9a8e1175bSopenharmony_ci
10a8e1175bSopenharmony_ciforeach(exe IN LISTS executables)
11a8e1175bSopenharmony_ci    add_executable(${exe} ${exe}.c $<TARGET_OBJECTS:mbedtls_test>)
12a8e1175bSopenharmony_ci    target_link_libraries(${exe} ${libs} ${CMAKE_THREAD_LIBS_INIT})
13a8e1175bSopenharmony_ci    target_include_directories(${exe} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../tests/include)
14a8e1175bSopenharmony_ciendforeach()
15a8e1175bSopenharmony_ci
16a8e1175bSopenharmony_ciinstall(TARGETS ${executables}
17a8e1175bSopenharmony_ci        DESTINATION "bin"
18a8e1175bSopenharmony_ci        PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
19