summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CommandLine/Build.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-02-26 15:21:09 (GMT)
committerBrad King <brad.king@kitware.com>2015-02-26 15:21:09 (GMT)
commitd1082448a8d0a75974920690dcbad8895169bfd6 (patch)
treeae9d6e85aaaf19eabbdfc68a1673d45c2d853b1c /Tests/RunCMake/CommandLine/Build.cmake
parentce935ebe50926bde199d86fbde4a78974a4043f9 (diff)
downloadCMake-d1082448a8d0a75974920690dcbad8895169bfd6.zip
CMake-d1082448a8d0a75974920690dcbad8895169bfd6.tar.gz
CMake-d1082448a8d0a75974920690dcbad8895169bfd6.tar.bz2
Tests: Extend RunCMake.CommandLine to cover 'cmake --build' for 'ninja -v'
Diffstat (limited to 'Tests/RunCMake/CommandLine/Build.cmake')
-rw-r--r--Tests/RunCMake/CommandLine/Build.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/Build.cmake b/Tests/RunCMake/CommandLine/Build.cmake
new file mode 100644
index 0000000..20df108
--- /dev/null
+++ b/Tests/RunCMake/CommandLine/Build.cmake
@@ -0,0 +1,5 @@
+add_custom_command(
+ OUTPUT output.txt
+ COMMAND ${CMAKE_COMMAND} -E echo CustomCommand > output.txt
+ )
+add_custom_target(CustomTarget ALL DEPENDS output.txt)