Add CMake, Ninja, and Conan support with kernel modules (GDT, interrupts)

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-28 20:03:46 +00:00
parent 025e58f391
commit 5c8cf64442
17 changed files with 1170 additions and 6 deletions

23
tests/unit/CMakeLists.txt Normal file
View File

@@ -0,0 +1,23 @@
# MetalOS Unit Tests CMakeLists
# Test sources
set(TEST_SOURCES
test_bootloader.c
)
# Create test executable for each test file
foreach(test_src ${TEST_SOURCES})
get_filename_component(test_name ${test_src} NAME_WE)
add_executable(${test_name} ${test_src})
# Link with test framework (if needed)
target_include_directories(${test_name} PRIVATE
${CMAKE_SOURCE_DIR}/tests/include
${CMAKE_SOURCE_DIR}/bootloader/include
${CMAKE_SOURCE_DIR}/kernel/include
)
# Add as test
add_test(NAME ${test_name} COMMAND ${test_name})
endforeach()