diff options
author | Brad King <brad.king@kitware.com> | 2005-02-25 14:31:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-02-25 14:31:55 (GMT) |
commit | b40219372efc70439cd5241aabc9c4b9cd2e9adf (patch) | |
tree | 44913b0d5040674ba1e8eac8126a43d1363bd543 /Tests/ComplexRelativePaths/Executable/CMakeLists.txt | |
parent | cf8fb5c6f8d9f16486d498849d86df5a025373c9 (diff) | |
download | CMake-b40219372efc70439cd5241aabc9c4b9cd2e9adf.zip CMake-b40219372efc70439cd5241aabc9c4b9cd2e9adf.tar.gz CMake-b40219372efc70439cd5241aabc9c4b9cd2e9adf.tar.bz2 |
ENH: Added full pre-build/pre-link/post-build testing for both library and executable targets.
Diffstat (limited to 'Tests/ComplexRelativePaths/Executable/CMakeLists.txt')
-rw-r--r-- | Tests/ComplexRelativePaths/Executable/CMakeLists.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/ComplexRelativePaths/Executable/CMakeLists.txt b/Tests/ComplexRelativePaths/Executable/CMakeLists.txt index 5ad17fc..a7ee95d 100644 --- a/Tests/ComplexRelativePaths/Executable/CMakeLists.txt +++ b/Tests/ComplexRelativePaths/Executable/CMakeLists.txt @@ -27,6 +27,22 @@ ELSE(UNIX) ENDIF(NOT BORLAND) ENDIF (UNIX) +# Test pre-build/pre-link/post-build rules for an executable. +ADD_CUSTOM_COMMAND(TARGET complex PRE_BUILD + COMMAND ${CREATE_FILE_EXE} + ARGS "${Complex_BINARY_DIR}/Executable/prebuild.txt") +ADD_CUSTOM_COMMAND(TARGET complex PRE_BUILD + COMMAND ${CREATE_FILE_EXE} + ARGS "${Complex_BINARY_DIR}/Executable/prelink.txt") +ADD_CUSTOM_COMMAND(TARGET complex POST_BUILD + COMMAND ${CREATE_FILE_EXE} + ARGS "${Complex_BINARY_DIR}/Executable/postbuild.txt") +ADD_CUSTOM_COMMAND(TARGET complex POST_BUILD + COMMAND ${CMAKE_COMMAND} + ARGS -E copy + "${Complex_BINARY_DIR}/Executable/postbuild.txt" + "${Complex_BINARY_DIR}/Executable/postbuild2.txt") + SET_SOURCE_FILES_PROPERTIES(complex COMPILE_FLAGS "-DFILE_HAS_EXTRA_COMPILE_FLAGS" OBJECT_DEPENDS ${Complex_BINARY_DIR}/cmTestGeneratedHeader.h |