automatically copy `apps/echo/config.yaml` to build directory.
@@ -21,6 +21,8 @@ set(UDP_ECHO_CLIENT_SOURCES ${ECHO_APPS_DIR}/dmtr_udp_client.cc)
set(RAW_ECHO_SERVER_SOURCES ${ECHO_APPS_DIR}/posix_tcp_server.cc)
set(RAW_ECHO_CLIENT_SOURCES ${ECHO_APPS_DIR}/posix_tcp_client.cc)
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.yaml ${CMAKE_CURRENT_BINARY_DIR}/config.yaml COPYONLY)
+
# POSIX TCP server
add_executable(dmtr-posix-server ${TCP_ECHO_SERVER_SOURCES})
target_link_libraries(dmtr-posix-server dmtr-libos-posix yaml-cpp boost_program_options)
