diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-05-02 15:53:09 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-05-03 14:39:50 +0200 |
commit | 6724a362c3bdda5b305bf54d092565fe5b1facac (patch) | |
tree | 0c4562c1f416c82826ed0b74b32881396c9d0be5 /CMakeLists.txt | |
parent | 7882b85b0691d6a669cb0b2656f1e4c7438c552b (diff) | |
download | qpdf-6724a362c3bdda5b305bf54d092565fe5b1facac.tar.zst |
Move generate_auto_job to the top-level CMakeLists.txt
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b043c629..72bf5a95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -280,6 +280,31 @@ if(WIN32) include(InstallRequiredSystemLibraries) endif() +set(auto_job_inputs + # Keep in sync with SOURCES in generate_auto_job + generate_auto_job + manual/_ext/qpdf.py + job.yml + manual/cli.rst) + +set(auto_job_outputs + # Keep in sync with DESTS in generate_auto_job + libqpdf/qpdf/auto_job_decl.hh + libqpdf/qpdf/auto_job_init.hh + libqpdf/qpdf/auto_job_help.hh + libqpdf/qpdf/auto_job_schema.hh + libqpdf/qpdf/auto_job_json_decl.hh + libqpdf/qpdf/auto_job_json_init.hh) + +if(GENERATE_AUTO_JOB) + add_custom_command( + OUTPUT ${auto_job_outputs} + COMMAND ${qpdf_SOURCE_DIR}/generate_auto_job --generate + WORKING_DIRECTORY ${qpdf_SOURCE_DIR} + DEPENDS ${auto_job_inputs}) + add_custom_target(auto_job_files ALL DEPENDS ${auto_job_outputs}) +endif() + # add_subdirectory order affects test order add_subdirectory(include) add_subdirectory(libqpdf) |