CMakeLists.txt 504 B

123456789101112
  1. set(MANPAGE "${CURL_BINARY_DIR}/docs/curl.1")
  2. # Load DPAGES and OTHERPAGES from shared file
  3. transform_makefile_inc("Makefile.inc" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake")
  4. include("${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake")
  5. add_custom_command(OUTPUT "${MANPAGE}"
  6. COMMAND "${PERL_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/gen.pl" mainpage "${CMAKE_CURRENT_SOURCE_DIR}" > "${MANPAGE}"
  7. DEPENDS ${DPAGES} ${OTHERPAGES}
  8. VERBATIM
  9. )
  10. add_custom_target(generate-curl.1 DEPENDS "${MANPAGE}")