2023-05-11 16:19:53 +03:00
|
|
|
cmake_minimum_required(VERSION 3.26)
|
|
|
|
|
|
|
|
project(userspace CXX)
|
|
|
|
|
|
|
|
set(USERSPACE_PROJECTS
|
2023-05-16 00:27:49 +03:00
|
|
|
cat
|
2023-09-29 17:24:55 +03:00
|
|
|
cat-mmap
|
2023-10-25 02:36:09 +03:00
|
|
|
chmod
|
2023-10-25 00:07:25 +03:00
|
|
|
cp
|
2023-09-10 00:01:50 +03:00
|
|
|
dd
|
2023-06-09 01:50:18 +03:00
|
|
|
echo
|
2023-06-11 22:32:14 +03:00
|
|
|
id
|
2023-06-11 21:01:02 +03:00
|
|
|
init
|
2023-11-29 16:11:35 +02:00
|
|
|
image
|
2023-06-11 03:29:41 +03:00
|
|
|
ls
|
2023-09-30 21:20:53 +03:00
|
|
|
meminfo
|
2023-10-25 19:45:18 +03:00
|
|
|
mkdir
|
2023-09-29 18:59:37 +03:00
|
|
|
mmap-shared-test
|
2023-09-28 12:36:47 +03:00
|
|
|
poweroff
|
2023-10-25 21:45:27 +03:00
|
|
|
rm
|
2023-06-11 03:29:41 +03:00
|
|
|
Shell
|
2023-12-06 13:05:53 +02:00
|
|
|
sleep
|
2023-09-04 14:30:45 +03:00
|
|
|
snake
|
2023-08-10 11:15:17 +03:00
|
|
|
stat
|
2023-12-06 18:15:42 +02:00
|
|
|
sudo
|
2023-09-11 01:26:27 +03:00
|
|
|
sync
|
2023-07-10 16:07:53 +03:00
|
|
|
tee
|
2023-05-11 16:19:53 +03:00
|
|
|
test
|
2023-10-30 11:11:10 +02:00
|
|
|
test-globals
|
2023-11-28 23:52:22 +02:00
|
|
|
test-framebuffer
|
2023-07-10 16:24:03 +03:00
|
|
|
touch
|
2023-06-12 20:36:16 +03:00
|
|
|
u8sum
|
2023-08-15 09:03:51 +03:00
|
|
|
whoami
|
2023-05-11 16:19:53 +03:00
|
|
|
yes
|
|
|
|
)
|
|
|
|
|
|
|
|
foreach(USERSPACE_PROJECT ${USERSPACE_PROJECTS})
|
|
|
|
add_subdirectory(${USERSPACE_PROJECT})
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
add_custom_target(userspace)
|
|
|
|
add_custom_target(userspace-install DEPENDS userspace)
|
|
|
|
|
2023-12-01 01:20:50 +02:00
|
|
|
add_subdirectory(aoc2023)
|
|
|
|
|
2023-05-11 16:19:53 +03:00
|
|
|
foreach(USERSPACE_PROJECT ${USERSPACE_PROJECTS})
|
2023-08-23 10:35:16 +03:00
|
|
|
target_compile_options(${USERSPACE_PROJECT} PRIVATE -g)
|
|
|
|
add_dependencies(${USERSPACE_PROJECT} libc-install ban-install)
|
2023-05-11 16:19:53 +03:00
|
|
|
add_dependencies(userspace ${USERSPACE_PROJECT})
|
|
|
|
add_dependencies(userspace-install ${USERSPACE_PROJECT}-install)
|
|
|
|
endforeach()
|