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:
8
userspace/tests/test-globals/CMakeLists.txt
Normal file
8
userspace/tests/test-globals/CMakeLists.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
set(SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
||||
add_executable(test-globals ${SOURCES})
|
||||
banan_link_library(test-globals libc)
|
||||
|
||||
install(TARGETS test-globals OPTIONAL)
|
||||
14
userspace/tests/test-globals/main.cpp
Normal file
14
userspace/tests/test-globals/main.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <stdio.h>
|
||||
|
||||
struct foo_t
|
||||
{
|
||||
foo_t() { printf("global constructor works\n"); }
|
||||
~foo_t() { printf("global destructor works\n"); }
|
||||
};
|
||||
|
||||
foo_t foo;
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user