banan-os/userspace/CMakeLists.txt

40 lines
707 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.26)
project(userspace CXX)
set(USERSPACE_PROJECTS
cat
cat-mmap
dd
2023-06-09 01:50:18 +03:00
echo
id
init
2023-06-11 03:29:41 +03:00
ls
mmap-shared-test
poweroff
2023-06-11 03:29:41 +03:00
Shell
snake
stat
sync
2023-07-10 16:07:53 +03:00
tee
test
2023-07-10 16:24:03 +03:00
touch
u8sum
2023-08-15 09:03:51 +03:00
whoami
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})
target_compile_options(${USERSPACE_PROJECT} PRIVATE -g)
add_dependencies(${USERSPACE_PROJECT} libc-install ban-install)
add_dependencies(userspace ${USERSPACE_PROJECT})
add_dependencies(userspace-install ${USERSPACE_PROJECT}-install)
endforeach()