userspace: Add test utility
This commit is contained in:
14
userspace/programs/test/CMakeLists.txt
Normal file
14
userspace/programs/test/CMakeLists.txt
Normal 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()
|
||||
")
|
||||
Reference in New Issue
Block a user