2023-09-30 21:20:53 +03:00
|
|
|
cmake_minimum_required(VERSION 3.26)
|
|
|
|
|
|
|
|
project(meminfo CXX)
|
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
main.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(meminfo ${SOURCES})
|
|
|
|
target_compile_options(meminfo PUBLIC -O2 -g)
|
|
|
|
target_link_libraries(meminfo PUBLIC libc)
|
|
|
|
|
|
|
|
add_custom_target(meminfo-install
|
2023-11-04 17:50:43 +02:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/meminfo ${BANAN_BIN}/
|
2023-09-30 21:20:53 +03:00
|
|
|
DEPENDS meminfo
|
|
|
|
)
|