CMakeLists.txt 672 B

123456789101112131415161718192021
  1. set(executables
  2. crypto_examples
  3. key_ladder_demo
  4. psa_constant_names
  5. )
  6. foreach(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)
  10. endforeach()
  11. target_include_directories(psa_constant_names PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
  12. install(TARGETS ${executables}
  13. DESTINATION "bin"
  14. PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
  15. install(PROGRAMS
  16. key_ladder_demo.sh
  17. DESTINATION "bin")