mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-29 04:03:52 +00:00
refactor: move input file for single include (#1036)
Followup to #1030 --------- Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
bd6462f62f
commit
74a3c0d421
@ -137,7 +137,7 @@ if __name__ == "__main__":
|
||||
parser.add_argument("--output", default=None, help="Single header file output")
|
||||
parser.add_argument(
|
||||
"--main",
|
||||
default="CLI11.hpp.in",
|
||||
default="single-include/CLI11.hpp.in",
|
||||
help="The main include file that defines the other files",
|
||||
)
|
||||
parser.add_argument("files", nargs="+", help="The header files")
|
||||
|
@ -17,9 +17,10 @@ if(CLI11_SINGLE_FILE)
|
||||
OUTPUT "${PROJECT_BINARY_DIR}/single-include/CLI11.hpp"
|
||||
COMMAND
|
||||
Python::Interpreter "${PROJECT_SOURCE_DIR}/scripts/MakeSingleHeader.py" ${CLI11_headers}
|
||||
${CLI11_impl_headers} --main "${PROJECT_SOURCE_DIR}/CLI11.hpp.in" --output
|
||||
${CLI11_impl_headers} --main "${CMAKE_CURRENT_SOURCE_DIR}/CLI11.hpp.in" --output
|
||||
"${PROJECT_BINARY_DIR}/single-include/CLI11.hpp" --version "${CLI11_VERSION}"
|
||||
DEPENDS "${PROJECT_SOURCE_DIR}/include/CLI/CLI.hpp" ${CLI11_headers} ${CLI11_impl_headers})
|
||||
DEPENDS "${PROJECT_SOURCE_DIR}/include/CLI/CLI.hpp" CLI11.hpp.in ${CLI11_headers}
|
||||
${CLI11_impl_headers})
|
||||
add_custom_target(CLI11-generate-single-file ALL
|
||||
DEPENDS "${PROJECT_BINARY_DIR}/single-include/CLI11.hpp")
|
||||
set_property(TARGET CLI11-generate-single-file PROPERTY FOLDER "Scripts")
|
||||
|
Loading…
x
Reference in New Issue
Block a user