From 44d4844ce63e7c00b4028bb918eed5d9fb795578 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Tue, 2 Dec 2025 18:43:29 +0100 Subject: x86_64/build: automatically collect headers --- arch/x86_64/CMakeLists.txt | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) (limited to 'arch/x86_64/CMakeLists.txt') 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 -- cgit v1.2.3