CMakeLists.txt 909 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. set(executables_mbedtls
  2. dh_client
  3. dh_server
  4. )
  5. foreach(exe IN LISTS executables_mbedtls)
  6. add_executable(${exe} ${exe}.c $<TARGET_OBJECTS:mbedtls_test>)
  7. target_link_libraries(${exe} ${mbedtls_target})
  8. endforeach()
  9. set(executables_mbedcrypto
  10. dh_genprime
  11. ecdh_curve25519
  12. ecdsa
  13. gen_key
  14. key_app
  15. key_app_writer
  16. mpi_demo
  17. pk_encrypt
  18. pk_decrypt
  19. pk_sign
  20. pk_verify
  21. rsa_decrypt
  22. rsa_encrypt
  23. rsa_genkey
  24. rsa_sign
  25. rsa_sign_pss
  26. rsa_verify
  27. rsa_verify_pss
  28. )
  29. foreach(exe IN LISTS executables_mbedcrypto)
  30. add_executable(${exe} ${exe}.c $<TARGET_OBJECTS:mbedtls_test>)
  31. target_link_libraries(${exe} ${mbedcrypto_target})
  32. endforeach()
  33. install(TARGETS ${executables_mbedtls} ${executables_mbedcrypto}
  34. DESTINATION "bin"
  35. PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)