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