mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:21:41 +03:00
cmake: add curl-optiontable, curl-listhelp, curl-listcats targets
To match autotools `optiontable`, `listhelp`, `listcats` targets. Closes #20014
This commit is contained in:
parent
7e2b15ee56
commit
d7bde803ee
2 changed files with 25 additions and 0 deletions
|
|
@ -40,3 +40,19 @@ add_custom_target(generate-curl.1 ALL DEPENDS "${CURL_MANPAGE}")
|
|||
if(NOT CURL_DISABLE_INSTALL)
|
||||
install(FILES "${CURL_MANPAGE}" DESTINATION "${CMAKE_INSTALL_MANDIR}/man1")
|
||||
endif()
|
||||
|
||||
if(PERL_EXECUTABLE)
|
||||
add_custom_target(curl-listhelp
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
COMMENT "Generating src/tool_listhelp.c" VERBATIM USES_TERMINAL
|
||||
COMMAND "${PERL_EXECUTABLE}" "${PROJECT_SOURCE_DIR}/scripts/managen" -d "${CMAKE_CURRENT_SOURCE_DIR}" listhelp ${DPAGES}
|
||||
> "${PROJECT_SOURCE_DIR}/src/tool_listhelp.c"
|
||||
DEPENDS "${PROJECT_SOURCE_DIR}/scripts/managen" ${DPAGES}
|
||||
)
|
||||
add_custom_target(curl-listcats
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
COMMENT "Generating help category constants for src/tool_help.h" VERBATIM USES_TERMINAL
|
||||
COMMAND "${PERL_EXECUTABLE}" "${PROJECT_SOURCE_DIR}/scripts/managen" listcats ${DPAGES}
|
||||
DEPENDS "${PROJECT_SOURCE_DIR}/scripts/managen" ${DPAGES}
|
||||
)
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue