From 01f9938119fa626bd44ca4b956b7d00c7de4b989 Mon Sep 17 00:00:00 2001 From: Romaric Jodin Date: Fri, 1 Nov 2024 08:36:42 +0100 Subject: [PATCH] install clspv-opt as part of clspv tools --- tools/clspv-opt/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/clspv-opt/CMakeLists.txt b/tools/clspv-opt/CMakeLists.txt index a6168b569..3dec490ad 100644 --- a/tools/clspv-opt/CMakeLists.txt +++ b/tools/clspv-opt/CMakeLists.txt @@ -52,3 +52,8 @@ endif() target_link_libraries(clspv-opt PRIVATE clspv_passes ${CLSPV_LLVM_COMPONENTS}) set_target_properties(clspv-opt PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CLSPV_BINARY_DIR}/bin) + +if(ENABLE_CLSPV_TOOLS_INSTALL) + install(TARGETS clspv-opt + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) +endif(ENABLE_CLSPV_TOOLS_INSTALL)