[cmake-commits] hoffman committed CMakeLists.txt NONE 1.1 hello_world
NONE 1.1
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Nov 27 15:14:44 EST 2006
Update of /cvsroot/CMake/CMake/Tests/TargetName/scripts
In directory public:/mounts/ram/cvs-serv6166/Tests/TargetName/scripts
Added Files:
CMakeLists.txt hello_world
Log Message:
ENH: add a test for a target name with the same name as the output of a custom command
--- NEW FILE: hello_world ---
#!/bin/sh
echo "hello, world"
--- NEW FILE: CMakeLists.txt ---
if(NOT CMAKE_BINARY_DIR STREQUAL "${CMAKE_SOURCE_DIR}")
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/hello_world
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_CURRENT_SOURCE_DIR}/hello_world ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/hello_world
)
add_custom_target(
hello_world_copy ALL
DEPENDS #hello_world
${CMAKE_CURRENT_BINARY_DIR}/hello_world
)
endif(NOT CMAKE_BINARY_DIR STREQUAL "${CMAKE_SOURCE_DIR}")
More information about the Cmake-commits
mailing list