banan-os/userspace/CMakeLists.txt

66 lines
963 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.26)
project(userspace CXX)
set(USERSPACE_PROJECTS
cat
cat-mmap
2023-10-25 02:36:09 +03:00
chmod
cp
dd
dhcp-client
2023-06-09 01:50:18 +03:00
echo
getopt
id
image
init
loadkeys
2023-06-11 03:29:41 +03:00
ls
meminfo
mkdir
mmap-shared-test
nslookup
poweroff
resolver
2023-10-25 21:45:27 +03:00
rm
2023-06-11 03:29:41 +03:00
Shell
sleep
snake
stat
sudo
sync
2023-07-10 16:07:53 +03:00
tee
test
test-framebuffer
test-globals
test-mouse
2024-02-14 17:23:26 +02:00
test-popen
test-sort
test-tcp
test-udp
test-unix-socket
test-window
2023-07-10 16:24:03 +03:00
touch
u8sum
2023-08-15 09:03:51 +03:00
whoami
WindowServer
yes
)
foreach(USERSPACE_PROJECT ${USERSPACE_PROJECTS})
add_subdirectory(${USERSPACE_PROJECT})
endforeach()
add_custom_target(userspace)
add_custom_target(userspace-install DEPENDS userspace)
add_subdirectory(aoc2023)
foreach(USERSPACE_PROJECT ${USERSPACE_PROJECTS})
target_compile_options(${USERSPACE_PROJECT} PRIVATE -g)
add_dependencies(userspace ${USERSPACE_PROJECT})
add_dependencies(userspace-install ${USERSPACE_PROJECT}-install)
target_link_options(${USERSPACE_PROJECT} PRIVATE -nolibc)
endforeach()