--- products/llbuild/CMakeLists.txt.orig 2017-12-05 12:40:29 UTC +++ products/llbuild/CMakeLists.txt @@ -13,3 +13,14 @@ target_link_libraries(llbuild if(NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Windows") target_link_libraries(llbuild curses) endif() + +install(TARGETS llbuild + COMPONENT llbuild + DESTINATION bin) + +add_custom_target(install-llbuild + DEPENDS llbuild + COMMENT "Installing llbuild..." + COMMAND "${CMAKE_COMMAND}" + -DCMAKE_INSTALL_COMPONENT=llbuild + -P "${CMAKE_BINARY_DIR}/cmake_install.cmake")