I'm running some time consuming bash script:
execute_process(
COMMAND "bash" "slow_script.sh"
WORKING_DIRECTORY ${INSTALL_SCRIPT_DIR}
ERROR_VARIABLE ERROR_MESSAGE
RESULT_VARIABLE ERROR_CODE)
and I want to see progress. I tried to show xterm window:
execute_process(
COMMAND "xterm" "-e" "slow_script.sh"
WORKING_DIRECTORY ${INSTALL_SCRIPT_DIR}
ERROR_VARIABLE ERROR_MESSAGE
RESULT_VARIABLE ERROR_CODE)
It works, but seems ugly.
Is it possible to show script output in CMake output while script is executing?