From 6a78573088635bc3310f25915ce638bf440dc7e7 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Wed, 2 Jan 2019 17:29:04 +0100 Subject: [PATCH] CMake: psa_constant_names and test_psa_constant_names Build and install psa_constant_names. Make sure that test_psa_constant_names passes in an out-of-tree build. --- programs/psa/CMakeLists.txt | 4 ++++ tests/CMakeLists.txt | 1 + 2 files changed, 5 insertions(+) diff --git a/programs/psa/CMakeLists.txt b/programs/psa/CMakeLists.txt index b3eedb63a..37038c0de 100644 --- a/programs/psa/CMakeLists.txt +++ b/programs/psa/CMakeLists.txt @@ -4,9 +4,13 @@ target_link_libraries(crypto_examples mbedtls) add_executable(key_ladder_demo key_ladder_demo.c) target_link_libraries(key_ladder_demo mbedtls) +add_executable(psa_constant_names psa_constant_names.c) +target_link_libraries(psa_constant_names mbedtls) + install(TARGETS crypto_examples key_ladder_demo + psa_constant_names DESTINATION "bin" PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 21cdfaba2..271ae2fb2 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -134,4 +134,5 @@ if (NOT ${CMAKE_CURRENT_BINARY_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) link_to_source(data_files) link_to_source(scripts) link_to_source(ssl-opt.sh) + link_to_source(suites) endif()