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