From a66880c98d11b00361f5a652f80bb6ec2ce51d9a Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 26 Jul 2019 20:57:24 +0200 Subject: [PATCH] Cosmetic changes. --- CMakeLists.txt | 1 + src/cli/CMakeLists.txt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 84f0e1f..aceea60 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,7 @@ if (WITH_MAN) COMMAND ${CMAKE_SOURCE_DIR}/build_manpage.sh ARGS ${PROJECT_VERSION}) add_custom_target(man ALL DEPENDS "${PROJECT_BINARY_DIR}/${PROJECT_NAME}.1") + install( FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) diff --git a/src/cli/CMakeLists.txt b/src/cli/CMakeLists.txt index 02e5547..93583e7 100644 --- a/src/cli/CMakeLists.txt +++ b/src/cli/CMakeLists.txt @@ -1,5 +1,7 @@ file(GLOB sources_cli *.cpp) + add_executable(${PROJECT_NAME}-cli ${sources_cli}) target_link_libraries(${PROJECT_NAME}-cli ${PROJECT_NAME}) set_target_properties(${PROJECT_NAME}-cli PROPERTIES OUTPUT_NAME ${PROJECT_NAME}) + install(TARGETS ${PROJECT_NAME}-cli DESTINATION ${CMAKE_INSTALL_BINDIR})