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-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-06-11 03:29:41 +03:00
|
|
|
ls
|
|
|
|
Shell
|
2023-09-04 14:30:45 +03:00
|
|
|
snake
|
2023-08-10 11:15:17 +03:00
|
|
|
stat
|
2023-07-10 16:07:53 +03:00
|
|
|
tee
|
2023-05-11 16:19:53 +03:00
|
|
|
test
|
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)
|
|
|
|
|
|
|
|
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()
|