summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2002-04-10 21:33:10 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2002-04-10 21:33:10 (GMT)
commit9d0a4b8a5f45a6c8884c1a386c21b39bda9c3739 (patch)
tree95db84ef2201d0d1fafa3b949178813bfaa7e85b /Tests
parentb26be30740de0320258c1152d88aaeadb849b199 (diff)
downloadCMake-9d0a4b8a5f45a6c8884c1a386c21b39bda9c3739.zip
CMake-9d0a4b8a5f45a6c8884c1a386c21b39bda9c3739.tar.gz
CMake-9d0a4b8a5f45a6c8884c1a386c21b39bda9c3739.tar.bz2
ENH: add a test to check if more than one post-build command can be attached. it fails right now.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Complex/Executable/complex.cxx2
-rw-r--r--Tests/Complex/Library/CMakeLists.txt7
-rw-r--r--Tests/ComplexOneConfig/Executable/complex.cxx2
-rw-r--r--Tests/ComplexOneConfig/Library/CMakeLists.txt7
-rw-r--r--Tests/ComplexRelativePaths/Executable/complex.cxx2
-rw-r--r--Tests/ComplexRelativePaths/Library/CMakeLists.txt7
6 files changed, 27 insertions, 0 deletions
diff --git a/Tests/Complex/Executable/complex.cxx b/Tests/Complex/Executable/complex.cxx
index 1415ce7..7afa821 100644
--- a/Tests/Complex/Executable/complex.cxx
+++ b/Tests/Complex/Executable/complex.cxx
@@ -541,12 +541,14 @@ int main()
// ----------------------------------------------------------------------
// A post-build custom-command has been attached to the lib (see Library/).
// It runs ${CREATE_FILE_EXE} which will create a file.
+ // It also copies that file again using CCOMMAND.
//
// WARNING: if you run 'complex' manually, this *will* fail, because
// the file was removed the last time 'complex' was run, and it is
// only created during a build.
TestAndRemoveFile(BINARY_DIR "/Library/postbuild.txt");
+ TestAndRemoveFile(BINARY_DIR "/Library/postbuild2.txt");
// ----------------------------------------------------------------------
// A custom target has been created (see Library/).
diff --git a/Tests/Complex/Library/CMakeLists.txt b/Tests/Complex/Library/CMakeLists.txt
index b3c402c..1aa325a 100644
--- a/Tests/Complex/Library/CMakeLists.txt
+++ b/Tests/Complex/Library/CMakeLists.txt
@@ -40,6 +40,13 @@ ADD_CUSTOM_COMMAND(SOURCE CMakeTestLibraryShared
ARGS "${Complex_BINARY_DIR}/Library/postbuild.txt"
TARGET CMakeTestLibraryShared)
+ADD_CUSTOM_COMMAND(SOURCE CMakeTestLibraryShared
+ COMMAND ${CCOMMAND_COMMAND}
+ ARGS copy
+ "${Complex_BINARY_DIR}/Library/postbuild.txt"
+ "${Complex_BINARY_DIR}/Library/postbuild2.txt"
+ TARGET CMakeTestLibraryShared)
+
#
# Add a custom target.
# It runs ${CREATE_FILE_EXE} which will create a file.
diff --git a/Tests/ComplexOneConfig/Executable/complex.cxx b/Tests/ComplexOneConfig/Executable/complex.cxx
index 1415ce7..7afa821 100644
--- a/Tests/ComplexOneConfig/Executable/complex.cxx
+++ b/Tests/ComplexOneConfig/Executable/complex.cxx
@@ -541,12 +541,14 @@ int main()
// ----------------------------------------------------------------------
// A post-build custom-command has been attached to the lib (see Library/).
// It runs ${CREATE_FILE_EXE} which will create a file.
+ // It also copies that file again using CCOMMAND.
//
// WARNING: if you run 'complex' manually, this *will* fail, because
// the file was removed the last time 'complex' was run, and it is
// only created during a build.
TestAndRemoveFile(BINARY_DIR "/Library/postbuild.txt");
+ TestAndRemoveFile(BINARY_DIR "/Library/postbuild2.txt");
// ----------------------------------------------------------------------
// A custom target has been created (see Library/).
diff --git a/Tests/ComplexOneConfig/Library/CMakeLists.txt b/Tests/ComplexOneConfig/Library/CMakeLists.txt
index b3c402c..1aa325a 100644
--- a/Tests/ComplexOneConfig/Library/CMakeLists.txt
+++ b/Tests/ComplexOneConfig/Library/CMakeLists.txt
@@ -40,6 +40,13 @@ ADD_CUSTOM_COMMAND(SOURCE CMakeTestLibraryShared
ARGS "${Complex_BINARY_DIR}/Library/postbuild.txt"
TARGET CMakeTestLibraryShared)
+ADD_CUSTOM_COMMAND(SOURCE CMakeTestLibraryShared
+ COMMAND ${CCOMMAND_COMMAND}
+ ARGS copy
+ "${Complex_BINARY_DIR}/Library/postbuild.txt"
+ "${Complex_BINARY_DIR}/Library/postbuild2.txt"
+ TARGET CMakeTestLibraryShared)
+
#
# Add a custom target.
# It runs ${CREATE_FILE_EXE} which will create a file.
diff --git a/Tests/ComplexRelativePaths/Executable/complex.cxx b/Tests/ComplexRelativePaths/Executable/complex.cxx
index 1415ce7..7afa821 100644
--- a/Tests/ComplexRelativePaths/Executable/complex.cxx
+++ b/Tests/ComplexRelativePaths/Executable/complex.cxx
@@ -541,12 +541,14 @@ int main()
// ----------------------------------------------------------------------
// A post-build custom-command has been attached to the lib (see Library/).
// It runs ${CREATE_FILE_EXE} which will create a file.
+ // It also copies that file again using CCOMMAND.
//
// WARNING: if you run 'complex' manually, this *will* fail, because
// the file was removed the last time 'complex' was run, and it is
// only created during a build.
TestAndRemoveFile(BINARY_DIR "/Library/postbuild.txt");
+ TestAndRemoveFile(BINARY_DIR "/Library/postbuild2.txt");
// ----------------------------------------------------------------------
// A custom target has been created (see Library/).
diff --git a/Tests/ComplexRelativePaths/Library/CMakeLists.txt b/Tests/ComplexRelativePaths/Library/CMakeLists.txt
index b3c402c..1aa325a 100644
--- a/Tests/ComplexRelativePaths/Library/CMakeLists.txt
+++ b/Tests/ComplexRelativePaths/Library/CMakeLists.txt
@@ -40,6 +40,13 @@ ADD_CUSTOM_COMMAND(SOURCE CMakeTestLibraryShared
ARGS "${Complex_BINARY_DIR}/Library/postbuild.txt"
TARGET CMakeTestLibraryShared)
+ADD_CUSTOM_COMMAND(SOURCE CMakeTestLibraryShared
+ COMMAND ${CCOMMAND_COMMAND}
+ ARGS copy
+ "${Complex_BINARY_DIR}/Library/postbuild.txt"
+ "${Complex_BINARY_DIR}/Library/postbuild2.txt"
+ TARGET CMakeTestLibraryShared)
+
#
# Add a custom target.
# It runs ${CREATE_FILE_EXE} which will create a file.