mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 15:41:46 +00:00
5caeb4a9b0
Add install targets as necessary to install bash-autocomplete, scan-build and scan-view via LLVM_DISTRIBUTION_TARGETS. Differential Revision: https://reviews.llvm.org/D68413 llvm-svn: 373695
24 lines
955 B
CMake
24 lines
955 B
CMake
set(CLANG_HMAPTOOL hmaptool)
|
|
|
|
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin/${CLANG_HMAPTOOL}
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory
|
|
${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin
|
|
COMMAND ${CMAKE_COMMAND} -E copy
|
|
${CMAKE_CURRENT_SOURCE_DIR}/${CLANG_HMAPTOOL}
|
|
${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin/
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${CLANG_HMAPTOOL})
|
|
|
|
list(APPEND Depends ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin/${CLANG_HMAPTOOL})
|
|
install(PROGRAMS ${CLANG_HMAPTOOL}
|
|
DESTINATION bin
|
|
COMPONENT hmaptool)
|
|
|
|
add_custom_target(hmaptool ALL DEPENDS ${Depends})
|
|
set_target_properties(hmaptool PROPERTIES FOLDER "Utils")
|
|
|
|
if(NOT LLVM_ENABLE_IDE)
|
|
add_llvm_install_targets("install-hmaptool"
|
|
DEPENDS hmaptool
|
|
COMPONENT hmaptool)
|
|
endif()
|