add_llbuild_executable(swift-build-tool
  swift-build-tool.cpp)

target_link_libraries(swift-build-tool
  llbuildBuildSystem
  llbuildCore
  llbuildBasic
  llvmSupport
  sqlite3
  curses
  )

install(TARGETS swift-build-tool
        COMPONENT swift-build-tool
        DESTINATION bin)

add_llbuild_executable(swift-build-tool
  swift-build-tool.cpp)

target_link_libraries(swift-build-tool
  llbuildBuildSystem
  llbuildCore
  llbuildBasic
  llvmSupport
  sqlite3
  curses
  )

install(TARGETS swift-build-tool
        COMPONENT swift-build-tool
        DESTINATION bin)

add_custom_target(install-swift-build-tool
                  DEPENDS swift-build-tool
                  COMMENT "Installing swift-build-tool..."
                  COMMAND "${CMAKE_COMMAND}"
                          -DCMAKE_INSTALL_COMPONENT=swift-build-tool
                          -P "${CMAKE_BINARY_DIR}/cmake_install.cmake")

Add custom target for installing only swift-build-tool.
[CMake] Add custom target for installing only swift-build-tool.

 - This follows the precedent used by libclang, etc. for providing explicit
   targets to install individual products.
