Skip to content
Snippets Groups Projects
Commit 072ee2e1 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

CMake corr man

parent 59c1a69a
No related branches found
No related tags found
1 merge request!640CMake: rm some options, shorten option names -> BA_SWIG, BA_TIFF, etc
# Configure man page generation # Install man page from auto
set(AUTO_DIR ${CMAKE_SOURCE_DIR}/auto/man)
install(FILES ${AUTO_DIR}/bornagain.1 DESTINATION ${CMAKE_INSTALL_PREFIX}/man/man1)
# If tool is found, configure for regenerating man page from source
find_program(POD2MAN pod2man) find_program(POD2MAN pod2man)
if(NOT POD2MAN) if(NOT POD2MAN)
...@@ -7,7 +12,6 @@ if(NOT POD2MAN) ...@@ -7,7 +12,6 @@ if(NOT POD2MAN)
endif() endif()
message(STATUS "Found pod2man: ${POD2MAN}") message(STATUS "Found pod2man: ${POD2MAN}")
set(AUTO_DIR ${CMAKE_SOURCE_DIR}/auto/man)
file(MAKE_DIRECTORY ${AUTO_DIR}) file(MAKE_DIRECTORY ${AUTO_DIR})
add_custom_target( add_custom_target(
...@@ -21,5 +25,3 @@ add_custom_command( ...@@ -21,5 +25,3 @@ add_custom_command(
${CMAKE_CURRENT_SOURCE_DIR}/bornagain.pod ${AUTO_DIR}/bornagain.1 ${CMAKE_CURRENT_SOURCE_DIR}/bornagain.pod ${AUTO_DIR}/bornagain.1
DEPENDS bornagain.pod DEPENDS bornagain.pod
) )
install(FILES ${AUTO_DIR}/bornagain.1 DESTINATION ${CMAKE_INSTALL_PREFIX}/man/man1)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment