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 5 add_manual_pages(man_MANS) 6 7 string(REPLACE ".3" ".html" HTMLPAGES "${man_MANS}") 8 string(REPLACE ".3" ".pdf" PDFPAGES "${man_MANS}") 9 add_custom_target(opts-html DEPENDS ${HTMLPAGES}) 10 add_custom_target(opts-pdf DEPENDS ${PDFPAGES}) 11 add_dependencies(html opts-html) 12 add_dependencies(pdf opts-pdf) 13