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