add_executable(foo dummy.cpp)
set_property(TARGET foo PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bar)
target_link_libraries(foo test)
