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-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-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-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-07-31 22:31:17 +03:00
|
|
|
target_compile_options(${USERSPACE_PROJECT} PUBLIC -g)
|
2023-05-11 16:19:53 +03:00
|
|
|
add_dependencies(userspace ${USERSPACE_PROJECT})
|
|
|
|
add_dependencies(userspace-install ${USERSPACE_PROJECT}-install)
|
|
|
|
endforeach()
|