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
|
2024-02-03 02:41:06 +02:00
|
|
|
dhcp-client
|
2023-06-09 01:50:18 +03:00
|
|
|
echo
|
2024-02-14 15:01:27 +02:00
|
|
|
getopt
|
2023-06-11 22:32:14 +03:00
|
|
|
id
|
2023-11-29 16:11:35 +02:00
|
|
|
image
|
2024-02-08 03:14:00 +02:00
|
|
|
init
|
2024-01-10 14:57:50 +02:00
|
|
|
loadkeys
|
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
|
2024-02-08 03:14:00 +02:00
|
|
|
nslookup
|
2023-09-28 12:36:47 +03:00
|
|
|
poweroff
|
2024-02-08 03:14:00 +02:00
|
|
|
resolver
|
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-11-28 23:52:22 +02:00
|
|
|
test-framebuffer
|
2024-01-04 19:40:08 +02:00
|
|
|
test-globals
|
|
|
|
test-mouse
|
2024-02-14 17:23:26 +02:00
|
|
|
test-popen
|
2023-12-07 10:16:15 +02:00
|
|
|
test-sort
|
2024-02-12 04:29:06 +02:00
|
|
|
test-tcp
|
2024-02-12 04:31:03 +02:00
|
|
|
test-udp
|
2024-02-08 13:17:53 +02:00
|
|
|
test-unix-socket
|
2024-05-29 16:00:54 +03:00
|
|
|
test-window
|
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
|
2024-05-29 16:00:54 +03:00
|
|
|
WindowServer
|
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)
|
2023-05-11 16:19:53 +03:00
|
|
|
add_dependencies(userspace ${USERSPACE_PROJECT})
|
|
|
|
add_dependencies(userspace-install ${USERSPACE_PROJECT}-install)
|
2024-04-03 14:45:28 +03:00
|
|
|
|
|
|
|
target_link_options(${USERSPACE_PROJECT} PRIVATE -nolibc)
|
2023-05-11 16:19:53 +03:00
|
|
|
endforeach()
|