From 90b576d2430439d28817a26f1fe77f1027674fef Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Fri, 26 Jun 2026 00:43:42 +0200 Subject: [PATCH] cmake: add install target --- src/trusted/service_runtime/CMakeLists.txt | 1 + src/trusted/service_runtime/linux/CMakeLists.txt | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/trusted/service_runtime/CMakeLists.txt b/src/trusted/service_runtime/CMakeLists.txt index 77c9969d9..f7f2dc4af 100644 --- a/src/trusted/service_runtime/CMakeLists.txt +++ b/src/trusted/service_runtime/CMakeLists.txt @@ -374,6 +374,7 @@ if (NOT COVERAGE_ENABLED OR NOT YOKAI_TARGET_SYSTEM_WINDOWS) add_executable(sel_ldr) target_link_libraries(sel_ldr ${LDR_LIBS}) + install(TARGETS sel_ldr DESTINATION bin) if (YOKAI_TARGET_SYSTEM_MACOS) # This target exists only to check that the service_runtime code diff --git a/src/trusted/service_runtime/linux/CMakeLists.txt b/src/trusted/service_runtime/linux/CMakeLists.txt index b4b8e58d5..e8195c78c 100644 --- a/src/trusted/service_runtime/linux/CMakeLists.txt +++ b/src/trusted/service_runtime/linux/CMakeLists.txt @@ -129,3 +129,8 @@ add_custom_target(nacl_helper_bootstrap ALL DEPENDS nacl_bootstrap_raw BYPRODUCTS "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/nacl_helper_bootstrap" ) + +install(PROGRAMS + "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/nacl_helper_bootstrap" + DESTINATION bin +)