summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests/ConfigureFile-DirOutput.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-09-16 19:09:58 (GMT)
committerBrad King <brad.king@kitware.com>2009-09-16 19:09:58 (GMT)
commit229b67a2499586a9aaf54d3d5a88fee7a3f37e2c (patch)
tree0f4bf204d4447fe230d0adf728f7be65b7ed5f25 /Tests/CMakeTests/ConfigureFile-DirOutput.cmake
parent6e8aeba41502f128cf27457f333dc85f1fe66638 (diff)
downloadCMake-229b67a2499586a9aaf54d3d5a88fee7a3f37e2c.zip
CMake-229b67a2499586a9aaf54d3d5a88fee7a3f37e2c.tar.gz
CMake-229b67a2499586a9aaf54d3d5a88fee7a3f37e2c.tar.bz2
Create CMake.ConfigureFile test for configure_file
This test checks that configure_file() handles input and output file arguments as documented.
Diffstat (limited to 'Tests/CMakeTests/ConfigureFile-DirOutput.cmake')
-rw-r--r--Tests/CMakeTests/ConfigureFile-DirOutput.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/CMakeTests/ConfigureFile-DirOutput.cmake b/Tests/CMakeTests/ConfigureFile-DirOutput.cmake
new file mode 100644
index 0000000..d682a2d
--- /dev/null
+++ b/Tests/CMakeTests/ConfigureFile-DirOutput.cmake
@@ -0,0 +1,5 @@
+file(WRITE ${CMAKE_CURRENT_SOURCE_DIR}/ConfigureFile-DirOutput.txt "DirOutput test file\n")
+file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/ConfigureFile-DirOutput)
+configure_file(ConfigureFile-DirOutput.txt ConfigureFile-DirOutput)
+file(READ ${CMAKE_CURRENT_BINARY_DIR}/ConfigureFile-DirOutput/ConfigureFile-DirOutput.txt out)
+message("${out}")