1set(executables 2 crypto_examples 3 key_ladder_demo 4 psa_constant_names 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 13target_include_directories(psa_constant_names PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) 14 15install(TARGETS ${executables} 16 DESTINATION "bin" 17 PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) 18 19install(PROGRAMS 20 key_ladder_demo.sh 21 DESTINATION "bin") 22