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 21:01:02 +03:00
|
|
|
init
|
2023-06-11 03:29:41 +03:00
|
|
|
ls
|
|
|
|
Shell
|
2023-05-11 16:19:53 +03:00
|
|
|
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})
|
2023-06-03 16:05:32 +03:00
|
|
|
target_compile_options(${USERSPACE_PROJECT} PUBLIC -mno-sse -mno-sse2)
|
2023-05-11 16:19:53 +03:00
|
|
|
add_dependencies(userspace ${USERSPACE_PROJECT})
|
|
|
|
add_dependencies(userspace-install ${USERSPACE_PROJECT}-install)
|
|
|
|
endforeach()
|