userspace: Add test utility

This commit is contained in:
2025-06-08 23:56:39 +03:00
parent 6f74f3c386
commit 30d5d85d1d
2 changed files with 261 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
set(SOURCES
main.cpp
)
add_executable(test ${SOURCES})
banan_link_library(test ban)
install(TARGETS test OPTIONAL)
install(CODE "
if (EXISTS ${CMAKE_INSTALL_BINDIR}/test)
file(COPY_FILE ${CMAKE_INSTALL_BINDIR}/test ${CMAKE_INSTALL_BINDIR}/[ ONLY_IF_DIFFERENT)
endif()
")