~ubuntu-branches/ubuntu/utopic/cmake/utopic

« back to all changes in this revision

Viewing changes to Tests/CustomCommand/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Harald Sitter
  • Date: 2013-10-10 12:54:39 UTC
  • mfrom: (1.14.7)
  • Revision ID: package-import@ubuntu.com-20131010125439-h0ahaj004on6oj92
Tags: 2.8.12-0ubuntu1
New upstream release LP: #1246701

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
  COMMENT "Running TDocument post-build commands"
124
124
  )
125
125
 
 
126
# Setup a custom target that will fail if the POST_BUILD custom command
 
127
# isn't run before it.
 
128
add_custom_command(
 
129
  OUTPUT doc3post.txt
 
130
  DEPENDS ${PROJECT_BINARY_DIR}/doc2post.txt
 
131
  COMMAND ${CMAKE_COMMAND} -E echo " Copying doc2pre.txt to doc3post.txt."
 
132
  COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_BINARY_DIR}/doc2post.txt
 
133
                                   ${PROJECT_BINARY_DIR}/doc3post.txt
 
134
  COMMENT "Running TDocument post-build dependent custom command"
 
135
  )
 
136
add_custom_target(doc3Post ALL DEPENDS doc3post.txt)
 
137
add_dependencies(doc3Post TDocument)
 
138
 
126
139
################################################################
127
140
#
128
141
#  Test using a multistep generated file