Skip to content

Commit

Permalink
[cmake] added psyc_install. god cmake install is terrible.
Browse files Browse the repository at this point in the history
  • Loading branch information
harrand committed Apr 18, 2024
1 parent ccb5eff commit 3af971a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ add_executable(psyc
src/util.hpp
)

add_custom_target(psyc_install
COMMAND ${CMAKE_COMMAND} -E copy "$<TARGET_FILE:psyc>" "${CMAKE_INSTALL_PREFIX}/bin/$<TARGET_FILE_NAME:psyc>"
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})

0 comments on commit 3af971a

Please sign in to comment.