PROJECT(HelloWorld) cmake_minimum_required(VERSION 2.8) ADD_EXECUTABLE(${PROJECT_NAME} src/main.c ) SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) #add_custom_target( # delivery # COMMAND make # COMMAND scp bin/${PROJECT_NAME} root@192.168.147.63:/home/root/ #) INSTALL( TARGETS ${PROJECT_NAME} RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-install/bin/demos/${ARCH_DIR}/${PROJECT_NAME} )