18 lines
310 B
CMake
18 lines
310 B
CMake
|
cmake_minimum_required(VERSION 3.26)
|
||
|
|
||
|
project(dd CXX)
|
||
|
|
||
|
set(SOURCES
|
||
|
main.cpp
|
||
|
)
|
||
|
|
||
|
add_executable(dd ${SOURCES})
|
||
|
target_compile_options(dd PUBLIC -O2 -g)
|
||
|
target_link_libraries(dd PUBLIC libc)
|
||
|
|
||
|
add_custom_target(dd-install
|
||
|
COMMAND sudo cp ${CMAKE_CURRENT_BINARY_DIR}/dd ${BANAN_BIN}/
|
||
|
DEPENDS dd
|
||
|
USES_TERMINAL
|
||
|
)
|