2023-06-11 22:32:14 +03:00
|
|
|
cmake_minimum_required(VERSION 3.26)
|
|
|
|
|
|
|
|
project(id CXX)
|
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
main.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(id ${SOURCES})
|
|
|
|
target_compile_options(id PUBLIC -O2 -g)
|
2023-08-18 15:36:51 +03:00
|
|
|
target_link_libraries(id PUBLIC libc ban)
|
2023-06-11 22:32:14 +03:00
|
|
|
|
|
|
|
add_custom_target(id-install
|
|
|
|
COMMAND cp ${CMAKE_CURRENT_BINARY_DIR}/id ${BANAN_BIN}/
|
|
|
|
DEPENDS id
|
|
|
|
)
|