CMakeLists.txt 474 B

123456789101112
  1. # Load man_MANS from shared file
  2. transform_makefile_inc("Makefile.inc" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake")
  3. include("${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake")
  4. add_manual_pages(man_MANS)
  5. string(REPLACE ".3" ".html" HTMLPAGES "${man_MANS}")
  6. string(REPLACE ".3" ".pdf" PDFPAGES "${man_MANS}")
  7. add_custom_target(opts-html DEPENDS ${HTMLPAGES})
  8. add_custom_target(opts-pdf DEPENDS ${PDFPAGES})
  9. add_dependencies(html opts-html)
  10. add_dependencies(pdf opts-pdf)