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