aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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