Files
mlpack/CMake/RunProgram.cmake
T
Ryan Curtin ead217c079 Add RunProgram.cmake.
Some other CMake configuration bits should be changed to use this.
2018-12-06 17:10:02 +00:00

9 lines
339 B
CMake

# RunProgram.cmake: a CMake script that actually runs the given program to
# generate a file, which is output into the given directory.
#
# This script depends on the following arguments:
#
# PROGRAM: the program to run to.
# OUTPUT_FILE: the file to store the output in.
execute_process(COMMAND ${PROGRAM} OUTPUT_FILE ${OUTPUT_FILE})