[cmake-commits] hoffman committed CMakeLists.txt 1.306 1.307
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Nov 27 15:14:44 EST 2006
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv6166/Source
Modified Files:
CMakeLists.txt
Log Message:
ENH: add a test for a target name with the same name as the output of a custom command
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/CMakeLists.txt,v
retrieving revision 1.306
retrieving revision 1.307
diff -u -d -r1.306 -r1.307
--- CMakeLists.txt 22 Nov 2006 19:26:01 -0000 1.306
+++ CMakeLists.txt 27 Nov 2006 20:14:42 -0000 1.307
@@ -390,6 +390,18 @@
--build-project TestTar
--test-command TestTarExec)
+ ADD_TEST(TargetName ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/TargetName"
+ "${CMake_BINARY_DIR}/Tests/TargetName"
+ --build-two-config
+ --build-generator ${CMAKE_TEST_GENERATOR}
+ --build-makeprogram ${CMAKE_TEST_MAKEPROGRAM}
+ --build-project TestTar
+ --test-command ${CMAKE_COMMAND} -E compare_files
+ ${CMake_SOURCE_DIR}/Tests/TargetName/scripts/hello_world
+ ${CMake_BINARY_DIR}/Tests/TargetName/scripts/hello_world)
+
ADD_TEST(CustomCommand ${CMAKE_CTEST_COMMAND}
--build-and-test
"${CMake_SOURCE_DIR}/Tests/CustomCommand"
More information about the Cmake-commits
mailing list