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