From 3af971a32353822c03dbd358d7ff0843b98711c8 Mon Sep 17 00:00:00 2001 From: harrand Date: Thu, 18 Apr 2024 17:24:09 +0100 Subject: [PATCH] [cmake] added psyc_install. god cmake install is terrible. --- cpp/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index da5ebf2..7a01b38 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -52,6 +52,12 @@ add_executable(psyc src/util.hpp ) +add_custom_target(psyc_install + COMMAND ${CMAKE_COMMAND} -E copy "$" "${CMAKE_INSTALL_PREFIX}/bin/$" + DEPENDS psyc + COMMENT "Installing psyc to ${CMAKE_INSTALL_PREFIX}" + ) + target_include_directories(psyc PRIVATE ${LLVM_INCLUDE_DIRS}) target_compile_definitions(psyc PRIVATE ${llvm_definitions_list}) target_link_libraries(psyc PRIVATE ${llvm_dependent_libs}) \ No newline at end of file