From a69196fbf5be739e000e340221229cade2b3b098 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Sat, 9 Mar 2013 16:17:02 +0000 Subject: [PATCH] Added missing install rule for man page --- CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7db89f8..223460b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -206,8 +206,20 @@ target_link_libraries(${PROJECT_NAME} ${PULSEVIEW_LINK_LIBS}) #= Installation #------------------------------------------------------------------------------- +# Executable installation + install(TARGETS ${PROJECT_NAME} DESTINATION bin/) +# Man page installation + +if(NOT MAN_INSTALL_DIR AND NOT WIN32) + set(MAN_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/man/man1) +endif() + +if(MAN_INSTALL_DIR) + install(FILES doc/pulseview.1 DESTINATION ${MAN_INSTALL_DIR}) +endif() + #=============================================================================== #= Packaging (handled by CPack) #------------------------------------------------------------------------------- -- 1.7.10.4