BuildSystem: Cleanup userspace directory layout
userspace programs are now in userspace/programs userspace tests are now in userspace/tests This makes listing userspace projects much cleaner. Libraries were already separated to their own directory, so other programs should also.
This commit is contained in:
22
userspace/tests/CMakeLists.txt
Normal file
22
userspace/tests/CMakeLists.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
set(USERSPACE_TESTS
|
||||
test-fork
|
||||
test-framebuffer
|
||||
test-globals
|
||||
test-mmap-shared
|
||||
test-mouse
|
||||
test-popen
|
||||
test-sort
|
||||
test-tcp
|
||||
test-udp
|
||||
test-unix-socket
|
||||
test-window
|
||||
)
|
||||
|
||||
foreach(project ${USERSPACE_TESTS})
|
||||
add_subdirectory(${project})
|
||||
add_dependencies(userspace ${project})
|
||||
# This is to allow cmake to link when libc updates
|
||||
target_link_options(${project} PRIVATE -nolibc)
|
||||
# Default compile options
|
||||
target_compile_options(${project} PRIVATE -g -O2)
|
||||
endforeach()
|
||||
Reference in New Issue
Block a user