mirror of
https://github.com/Xahau/xahaud.git
synced 2026-04-29 15:37:46 +00:00
18 lines
556 B
CMake
18 lines
556 B
CMake
#[=========================================================[
|
|
This is a CMake script file that is used to write
|
|
the contents of a file to stdout (using the cmake
|
|
echo command). The input file is passed via the
|
|
IN_FILE variable.
|
|
#]=========================================================]
|
|
|
|
if (EXISTS ${IN_FILE})
|
|
file (READ ${IN_FILE} contents)
|
|
## only print files that actually have some text in them
|
|
if (contents MATCHES "[a-z0-9A-Z]+")
|
|
execute_process(
|
|
COMMAND
|
|
${CMAKE_COMMAND} -E echo "${contents}")
|
|
endif ()
|
|
endif ()
|
|
|