aboutsummaryrefslogtreecommitdiff
path: root/kernel/CMakeLists.txt
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-03-26 16:54:07 +0100
committerFelix Morgner <felix.morgner@ost.ch>2026-03-27 07:02:35 +0100
commita2834cc22b096e848448bb681ab7b517ecbe70b9 (patch)
tree9d9116c2ca021f38761095f73812538db29e7646 /kernel/CMakeLists.txt
parentf4dc64976049761a6f56dd55d9d0b651f1e9475f (diff)
downloadteachos-a2834cc22b096e848448bb681ab7b517ecbe70b9.tar.xz
teachos-a2834cc22b096e848448bb681ab7b517ecbe70b9.zip
build: simplify header scanning
Diffstat (limited to 'kernel/CMakeLists.txt')
-rw-r--r--kernel/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/CMakeLists.txt b/kernel/CMakeLists.txt
index 535c441..3d3c7e2 100644
--- a/kernel/CMakeLists.txt
+++ b/kernel/CMakeLists.txt
@@ -56,6 +56,15 @@ set_property(TARGET "kernel"
"${KERNEL_LINKER_SCRIPT}"
)
+file(GLOB_RECURSE KERNEL_HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "include/**.hpp")
+
+target_sources("kernel" PUBLIC
+ FILE_SET HEADERS
+ BASE_DIRS "include"
+ FILES
+ ${KERNEL_HEADERS}
+)
+
target_disassemble("kernel")
target_extract_debug_symbols("kernel")
target_strip("kernel")