From f31dbb7bf1c3bd6f1611d289614732976f3d65f9 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Wed, 2 Jan 2019 17:28:46 +0100 Subject: [PATCH] CMake: build and install key_ladder_demo --- programs/psa/CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/programs/psa/CMakeLists.txt b/programs/psa/CMakeLists.txt index a0fe803d7..b3eedb63a 100644 --- a/programs/psa/CMakeLists.txt +++ b/programs/psa/CMakeLists.txt @@ -1,7 +1,15 @@ add_executable(crypto_examples crypto_examples.c) target_link_libraries(crypto_examples mbedtls) -install(TARGETS crypto_examples +add_executable(key_ladder_demo key_ladder_demo.c) +target_link_libraries(key_ladder_demo mbedtls) + +install(TARGETS + crypto_examples + key_ladder_demo DESTINATION "bin" PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) +install(PROGRAMS + key_ladder_demo.sh + DESTINATION "bin")