banan-os/userspace/CMakeLists.txt

24 lines
542 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.26)
project(userspace CXX)
set(USERSPACE_PROJECTS
2023-05-16 19:22:46 +03:00
Shell
cat
test
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_link_options(${USERSPACE_PROJECT} PUBLIC -nodefaultlibs)
add_dependencies(userspace ${USERSPACE_PROJECT})
add_dependencies(userspace-install ${USERSPACE_PROJECT}-install)
endforeach()