• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1set(CLANG_HMAPTOOL hmaptool)
2
3add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin/${CLANG_HMAPTOOL}
4                   COMMAND ${CMAKE_COMMAND} -E make_directory
5                     ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin
6                   COMMAND ${CMAKE_COMMAND} -E copy
7                     ${CMAKE_CURRENT_SOURCE_DIR}/${CLANG_HMAPTOOL}
8                     ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin/
9                   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${CLANG_HMAPTOOL})
10
11list(APPEND Depends ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin/${CLANG_HMAPTOOL})
12install(PROGRAMS ${CLANG_HMAPTOOL}
13        DESTINATION bin
14        COMPONENT hmaptool)
15
16add_custom_target(hmaptool ALL DEPENDS ${Depends})
17set_target_properties(hmaptool PROPERTIES FOLDER "Utils")
18
19if(NOT LLVM_ENABLE_IDE)
20  add_llvm_install_targets("install-hmaptool"
21                           DEPENDS hmaptool
22                           COMPONENT hmaptool)
23endif()
24