banan-os/userspace/CMakeLists.txt

48 lines
777 B
CMake

cmake_minimum_required(VERSION 3.26)
project(userspace CXX)
set(USERSPACE_PROJECTS
cat
cat-mmap
chmod
cp
dd
echo
id
init
image
ls
meminfo
mkdir
mmap-shared-test
poweroff
rm
Shell
snake
stat
sync
tee
test
test-globals
test-framebuffer
touch
u8sum
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()