[cmake-commits] alex committed CMakeLists.txt 1.27.2.1 1.27.2.2
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon May 7 09:48:18 EDT 2007
Update of /cvsroot/CMake/CMake/Tests/CustomCommand
In directory public:/mounts/ram/cvs-serv6297/CustomCommand
Modified Files:
Tag: CMake-ACC-TargetUsedAsCommand
CMakeLists.txt
Log Message:
ENH: add test for the target-to-location translation for ADD_CUSTOM_TARGET
Alex
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CustomCommand/CMakeLists.txt,v
retrieving revision 1.27.2.1
retrieving revision 1.27.2.2
diff -u -d -r1.27.2.1 -r1.27.2.2
--- CMakeLists.txt 4 May 2007 20:43:29 -0000 1.27.2.1
+++ CMakeLists.txt 7 May 2007 13:48:16 -0000 1.27.2.2
@@ -173,6 +173,8 @@
# actual location of the executable.
# Additionally the generator is created in an extra subdir after the
# ADD_CUSTOM_COMMAND() is used.
+#
+# Test the same for ADD_CUSTOM_TARGET()
ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/generated_extern.cxx
COMMAND generator_extern ${CMAKE_CURRENT_BINARY_DIR}/generated_extern.cxx
@@ -181,6 +183,11 @@
ADD_EXECUTABLE(CustomCommandUsingTargetTest main.cxx ${CMAKE_CURRENT_BINARY_DIR}/generated_extern.cxx )
+ADD_CUSTOM_TARGET(RunTarget
+ COMMAND generator_extern ${CMAKE_CURRENT_BINARY_DIR}/run_target.cxx
+ DEPENDS generator_extern
+ )
+
ADD_SUBDIRECTORY(GeneratorInExtraDir)
More information about the Cmake-commits
mailing list