banan-os/userspace/echo/CMakeLists.txt

17 lines
326 B
CMake
Raw Normal View History

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
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/echo ${BANAN_BIN}/
2023-06-09 01:50:18 +03:00
DEPENDS echo
)