cmake_minimum_required(VERSION 2.8) execute_process(COMMAND sleep 2) execute_process(COMMAND ${CMAKE_COMMAND} -E echo "EHLO nonsense.example.org\r") execute_process(COMMAND sleep 1) # pipelining execute_process(COMMAND ${CMAKE_COMMAND} -E echo "mail from:<>\r\nrcpt to:\r\nrcpt to:\r\ndata\r") execute_process(COMMAND sleep 1) execute_process(COMMAND ${CMAKE_COMMAND} -E echo "quit\r") execute_process(COMMAND sleep 1)