diff options
author | Ken Martin <ken.martin@kitware.com> | 2003-06-30 14:12:24 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2003-06-30 14:12:24 (GMT) |
commit | ac2de4f5defce85b7980d70656668d8aebc62079 (patch) | |
tree | 9f63569c1689bb9369152545624dda20b00d1d21 /Tests | |
parent | 6eb6225e2a577dad8f21499778bb44267cb283c3 (diff) | |
download | CMake-ac2de4f5defce85b7980d70656668d8aebc62079.zip CMake-ac2de4f5defce85b7980d70656668d8aebc62079.tar.gz CMake-ac2de4f5defce85b7980d70656668d8aebc62079.tar.bz2 |
modified code to match cmake mode
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CustomCommand/CMakeLists.txt | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/Tests/CustomCommand/CMakeLists.txt b/Tests/CustomCommand/CMakeLists.txt index 4ac86e5..fda4969 100644 --- a/Tests/CustomCommand/CMakeLists.txt +++ b/Tests/CustomCommand/CMakeLists.txt @@ -7,12 +7,12 @@ PROJECT (CustomCommand) # Lib and exe path # SET (LIBRARY_OUTPUT_PATH - ${PROJECT_BINARY_DIR}/bin/ CACHE PATH - "Single output directory for building all libraries.") + ${PROJECT_BINARY_DIR}/bin/ CACHE PATH + "Single output directory for building all libraries.") SET (EXECUTABLE_OUTPUT_PATH - ${PROJECT_BINARY_DIR}/bin/ CACHE PATH - "Single output directory for building all executables.") + ${PROJECT_BINARY_DIR}/bin/ CACHE PATH + "Single output directory for building all executables.") ################################################################ # @@ -26,10 +26,10 @@ ADD_EXECUTABLE(generator generator.cxx) # is instantiated for the output, with GENERATED 1 # at the end of the day this becomes a what in VS ? ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_BINARY_DIR}/generated.c - DEPENDS generator - COMMAND ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/generator - ARGS ${PROJECT_BINARY_DIR}/generated.c - ) + DEPENDS generator + COMMAND ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/generator + ARGS ${PROJECT_BINARY_DIR}/generated.c + ) ################################################################ # @@ -43,36 +43,36 @@ ADD_EXECUTABLE(wrapper wrapper.cxx) # is instantiated for the output, with GENERATED 1 # at the end of the day this becomes a what in VS ? ADD_CUSTOM_COMMAND( - OUTPUT ${PROJECT_BINARY_DIR}/wrapped.c - DEPENDS wrapper - MAIN_DEPENDENCY ${PROJECT_SOURCE_DIR}/wrapped.h - COMMAND ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/wrapper - ARGS ${PROJECT_BINARY_DIR}/wrapped.c ${PROJECT_SOURCE_DIR}/wrapped.h - ) - + OUTPUT ${PROJECT_BINARY_DIR}/wrapped.c + DEPENDS wrapper + MAIN_DEPENDENCY ${PROJECT_SOURCE_DIR}/wrapped.h + COMMAND ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/wrapper + ARGS ${PROJECT_BINARY_DIR}/wrapped.c ${PROJECT_SOURCE_DIR}/wrapped.h + ) + ################################################################ # # Test creating files from a custom target # ################################################################ ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_BINARY_DIR}/doc1.dvi - DEPENDS ${PROJECT_SOURCE_DIR}/doc1.tex - COMMAND ${CMAKE_COMMAND} - ARGS -E copy ${PROJECT_SOURCE_DIR}/doc1.tex - ${PROJECT_BINARY_DIR}/doc1.dvi - ) + DEPENDS ${PROJECT_SOURCE_DIR}/doc1.tex + COMMAND ${CMAKE_COMMAND} + ARGS -E copy ${PROJECT_SOURCE_DIR}/doc1.tex + ${PROJECT_BINARY_DIR}/doc1.dvi + ) ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_BINARY_DIR}/doc1.h - DEPENDS ${PROJECT_BINARY_DIR}/doc1.dvi - COMMAND ${CMAKE_COMMAND} - ARGS -E copy ${PROJECT_BINARY_DIR}/doc1.dvi - ${PROJECT_BINARY_DIR}/doc1.h - ) + DEPENDS ${PROJECT_BINARY_DIR}/doc1.dvi + COMMAND ${CMAKE_COMMAND} + ARGS -E copy ${PROJECT_BINARY_DIR}/doc1.dvi + ${PROJECT_BINARY_DIR}/doc1.h + ) ADD_CUSTOM_TARGET(TDocument ALL - ${CMAKE_COMMAND} -E echo "building doc1.h" - DEPENDS ${PROJECT_BINARY_DIR}/doc1.h - ) + ${CMAKE_COMMAND} -E echo "building doc1.h" + DEPENDS ${PROJECT_BINARY_DIR}/doc1.h + ) ################################################################ # @@ -80,18 +80,18 @@ ADD_CUSTOM_TARGET(TDocument ALL # ################################################################ ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_BINARY_DIR}/foo.pre - DEPENDS ${PROJECT_SOURCE_DIR}/foo.in - COMMAND ${CMAKE_COMMAND} - ARGS -E copy ${PROJECT_SOURCE_DIR}/foo.in - ${PROJECT_BINARY_DIR}/foo.pre - ) + DEPENDS ${PROJECT_SOURCE_DIR}/foo.in + COMMAND ${CMAKE_COMMAND} + ARGS -E copy ${PROJECT_SOURCE_DIR}/foo.in + ${PROJECT_BINARY_DIR}/foo.pre + ) ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_BINARY_DIR}/foo.c - DEPENDS TDocument ${PROJECT_BINARY_DIR}/foo.pre - COMMAND ${CMAKE_COMMAND} - ARGS -E copy ${PROJECT_BINARY_DIR}/foo.pre - ${PROJECT_BINARY_DIR}/foo.c - ) + DEPENDS TDocument ${PROJECT_BINARY_DIR}/foo.pre + COMMAND ${CMAKE_COMMAND} + ARGS -E copy ${PROJECT_BINARY_DIR}/foo.pre + ${PROJECT_BINARY_DIR}/foo.c + ) # add the library ADD_EXECUTABLE(CustomCommand @@ -102,4 +102,4 @@ ADD_EXECUTABLE(CustomCommand # must add a dependency on TDocument otherwise it might never build and # the CustomCommand executable really needs doc1.h -ADD_DEPENDENCIES(CustomCommand TDocument)
\ No newline at end of file +ADD_DEPENDENCIES(CustomCommand TDocument) |