2023-06-09 01:50:18 +03:00
|
|
|
cmake_minimum_required(VERSION 3.26)
|
|
|
|
|
|
|
|
project(echo CXX)
|
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
main.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(echo ${SOURCES})
|
|
|
|
target_compile_options(echo PUBLIC -O2 -g)
|
|
|
|
target_link_libraries(echo PUBLIC libc)
|
|
|
|
|
|
|
|
add_custom_target(echo-install
|
2023-08-23 10:35:16 +03:00
|
|
|
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/echo ${BANAN_BIN}/
|
2023-06-09 01:50:18 +03:00
|
|
|
DEPENDS echo
|
2023-08-23 10:35:16 +03:00
|
|
|
USES_TERMINAL
|
2023-06-09 01:50:18 +03:00
|
|
|
)
|