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