1a8e1175bSopenharmony_ciset(libs
2a8e1175bSopenharmony_ci    ${mbedx509_target}
3a8e1175bSopenharmony_ci)
4a8e1175bSopenharmony_ci
5a8e1175bSopenharmony_ciset(executables
6a8e1175bSopenharmony_ci    cert_app
7a8e1175bSopenharmony_ci    cert_req
8a8e1175bSopenharmony_ci    cert_write
9a8e1175bSopenharmony_ci    crl_app
10a8e1175bSopenharmony_ci    load_roots
11a8e1175bSopenharmony_ci    req_app
12a8e1175bSopenharmony_ci)
13a8e1175bSopenharmony_ci
14a8e1175bSopenharmony_ciforeach(exe IN LISTS executables)
15a8e1175bSopenharmony_ci    add_executable(${exe} ${exe}.c $<TARGET_OBJECTS:mbedtls_test>)
16a8e1175bSopenharmony_ci    target_link_libraries(${exe} ${libs} ${CMAKE_THREAD_LIBS_INIT})
17a8e1175bSopenharmony_ci    target_include_directories(${exe} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../tests/include)
18a8e1175bSopenharmony_ciendforeach()
19a8e1175bSopenharmony_ci
20a8e1175bSopenharmony_citarget_link_libraries(cert_app ${mbedtls_target})
21a8e1175bSopenharmony_ci
22a8e1175bSopenharmony_ciinstall(TARGETS ${executables}
23a8e1175bSopenharmony_ci        DESTINATION "bin"
24a8e1175bSopenharmony_ci        PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
25