CMakeLists.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. add_executable(dh_client dh_client.c)
  2. target_link_libraries(dh_client mbedtls)
  3. add_executable(dh_genprime dh_genprime.c)
  4. target_link_libraries(dh_genprime mbedtls)
  5. add_executable(dh_server dh_server.c)
  6. target_link_libraries(dh_server mbedtls)
  7. add_executable(ecdh_curve25519 ecdh_curve25519.c)
  8. target_link_libraries(ecdh_curve25519 mbedtls)
  9. add_executable(ecdsa ecdsa.c)
  10. target_link_libraries(ecdsa mbedtls)
  11. add_executable(gen_key gen_key.c)
  12. target_link_libraries(gen_key mbedtls)
  13. add_executable(key_app key_app.c)
  14. target_link_libraries(key_app mbedtls)
  15. add_executable(key_app_writer key_app_writer.c)
  16. target_link_libraries(key_app_writer mbedtls)
  17. add_executable(mpi_demo mpi_demo.c)
  18. target_link_libraries(mpi_demo mbedtls)
  19. add_executable(rsa_genkey rsa_genkey.c)
  20. target_link_libraries(rsa_genkey mbedtls)
  21. add_executable(rsa_sign rsa_sign.c)
  22. target_link_libraries(rsa_sign mbedtls)
  23. add_executable(rsa_verify rsa_verify.c)
  24. target_link_libraries(rsa_verify mbedtls)
  25. add_executable(rsa_sign_pss rsa_sign_pss.c)
  26. target_link_libraries(rsa_sign_pss mbedtls)
  27. add_executable(rsa_verify_pss rsa_verify_pss.c)
  28. target_link_libraries(rsa_verify_pss mbedtls)
  29. add_executable(rsa_encrypt rsa_encrypt.c)
  30. target_link_libraries(rsa_encrypt mbedtls)
  31. add_executable(rsa_decrypt rsa_decrypt.c)
  32. target_link_libraries(rsa_decrypt mbedtls)
  33. add_executable(pk_sign pk_sign.c)
  34. target_link_libraries(pk_sign mbedtls)
  35. add_executable(pk_verify pk_verify.c)
  36. target_link_libraries(pk_verify mbedtls)
  37. add_executable(pk_encrypt pk_encrypt.c)
  38. target_link_libraries(pk_encrypt mbedtls)
  39. add_executable(pk_decrypt pk_decrypt.c)
  40. target_link_libraries(pk_decrypt mbedtls)
  41. install(TARGETS dh_client dh_genprime dh_server key_app mpi_demo rsa_genkey rsa_sign rsa_verify rsa_encrypt rsa_decrypt pk_encrypt pk_decrypt pk_sign pk_verify gen_key
  42. DESTINATION "bin"
  43. PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)