aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/CMakeLists.txt
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-12-02 18:43:29 +0100
committerFelix Morgner <felix.morgner@ost.ch>2025-12-02 18:43:34 +0100
commit44d4844ce63e7c00b4028bb918eed5d9fb795578 (patch)
tree5ffa89fb50ec60bae7ac6902173e8553112844bb /arch/x86_64/CMakeLists.txt
parenta96b1b4b43a1ed962b412c3d28db0fe00661d96f (diff)
downloadteachos-44d4844ce63e7c00b4028bb918eed5d9fb795578.tar.xz
teachos-44d4844ce63e7c00b4028bb918eed5d9fb795578.zip
x86_64/build: automatically collect headers
Diffstat (limited to 'arch/x86_64/CMakeLists.txt')
-rw-r--r--arch/x86_64/CMakeLists.txt26
1 files changed, 3 insertions, 23 deletions
diff --git a/arch/x86_64/CMakeLists.txt b/arch/x86_64/CMakeLists.txt
index f010dcf..9afbce3 100644
--- a/arch/x86_64/CMakeLists.txt
+++ b/arch/x86_64/CMakeLists.txt
@@ -33,32 +33,12 @@ target_sources("x86_64" PRIVATE
"src/vga/text.cpp"
)
+file(GLOB_RECURSE ARCH_HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "include/**.hpp")
+
target_sources("x86_64" PRIVATE
FILE_SET HEADERS
BASE_DIRS "include"
- FILES
- # Low-level bootstrap
- "include/x86_64/boot/boot.hpp"
- "include/x86_64/boot/ld.hpp"
-
- # Low-level CPU access
- "include/x86_64/cpu/registers.hpp"
- "include/x86_64/cpu/impl/control_registers.hpp"
- "include/x86_64/cpu/impl/model_specific_register.hpp"
-
- # Low-level device I/O
- "include/x86_64/device_io/port_io.hpp"
-
- # Memory management
- "include/x86_64/memory/mmu.hpp"
- "include/x86_64/memory/page_table.hpp"
- "include/x86_64/memory/page_utilities.hpp"
- "include/x86_64/memory/paging_root.hpp"
- "include/x86_64/memory/region_allocator.hpp"
- "include/x86_64/memory/scoped_mapping.hpp"
-
- # VGA I/O
- "include/x86_64/vga/text.hpp"
+ FILES ${ARCH_HEADERS}
)
set(KERNEL_LINKER_SCRIPT