@@ -19,30 +19,6 @@ include_guard()
1919# under share/dpl directory
2020#
2121
22- #function(o2_add_qc_workflow workflowName configurationFile)
23- #
24- # set(jsonDumpFile ${workflowName}.json)
25- # set(qcExecutable o2-qc)
26- #
27- # install(CODE "message(\"Generating a workflow dump with the command: ${CMAKE_INSTALL_PREFIX}/bin/${qcExecutable} -b --config json:/${CMAKE_INSTALL_PREFIX}/${configurationFile} --dump-workflow --dump-workflow-file ${CMAKE_CURRENT_BINARY_DIR}/${jsonDumpFile}\")")
28- # install(CODE "execute_process(
29- # COMMAND ${CMAKE_INSTALL_PREFIX}/bin/${qcExecutable} -b --config json:/${CMAKE_INSTALL_PREFIX}/${configurationFile} --dump-workflow --dump-workflow-file ${CMAKE_CURRENT_BINARY_DIR}/${jsonDumpFile}
30- # )")
31- ## install(CODE "execute_process(
32- ## COMMAND echo 'QUALITYCONTROL_ROOT: ${QUALITYCONTROL_ROOT}'
33- ## )")
34- ## install(CODE "execute_process(
35- ## COMMAND pwd
36- ## )")
37- ## install(CODE "execute_process(
38- ## COMMAND which bin/o2-qc
39- ## )")
40- # install(
41- # FILES ${CMAKE_CURRENT_BINARY_DIR}/${jsonDumpFile}
42- # DESTINATION ${CMAKE_INSTALL_DATADIR}/dpl)
43- #
44- #endfunction()
45-
4622function (o2_add_qc_workflow )
4723
4824 cmake_parse_arguments (
@@ -56,10 +32,8 @@ function(o2_add_qc_workflow)
5632 if (NOT PARSED_ARGS_WORKFLOW_NAME OR NOT PARSED_ARGS_CONFIG_FILE_PATH)
5733 message (FATAL_ERROR "You must provide a workflow name and a config file path" )
5834 endif ()
59- message (STATUS "o2_add_qc_workflow called with config file ${PARSED_ARGS_CONFIG_FILE_PATH} to generate ${PARSED_ARGS_WORKFLOW_NAME} " )
60-
61- set (jsonDumpFile ${CMAKE_CURRENT_SOURCE_DIR } /${PARSED_ARGS_WORKFLOW_NAME} .json)
62- message (STATUS "jsonDumpFile: ${jsonDumpFile} " )
35+ set (jsonDumpFile ${CMAKE_CURRENT_BINARY_DIR } /${PARSED_ARGS_WORKFLOW_NAME} .json)
36+ message (STATUS "o2_add_qc_workflow called with config file ${PARSED_ARGS_CONFIG_FILE_PATH} to generate ${jsonDumpFile} " )
6337 set (qcExecutable o2-qc)
6438
6539 add_custom_command (
@@ -73,7 +47,6 @@ function(o2_add_qc_workflow)
7347 add_custom_target (${filename} ALL DEPENDS ${jsonDumpFile} )
7448
7549 # will install the rootmap and pcm files alongside the target's lib
76- install (FILES ${jsonDumpFile}
77- DESTINATION ${CMAKE_INSTALL_DATADIR} /dpl)
50+ install (FILES ${jsonDumpFile} DESTINATION ${CMAKE_INSTALL_DATADIR} /dpl)
7851
7952endfunction ()
0 commit comments