1 if(NOT CMAKE_BINARY_DIR STREQUAL "${CMAKE_SOURCE_DIR}")
3 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/hello_world
4 COMMAND ${CMAKE_COMMAND} -E copy
5 ${CMAKE_CURRENT_SOURCE_DIR}/hello_world ${CMAKE_CURRENT_BINARY_DIR}
6 DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/hello_world
11 ${CMAKE_CURRENT_BINARY_DIR}/hello_world
13 endif(NOT CMAKE_BINARY_DIR STREQUAL "${CMAKE_SOURCE_DIR}")