mirror of
https://github.com/johndoe6345789/MetalOS.git
synced 2026-04-24 13:45:02 +00:00
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:
23
tests/unit/CMakeLists.txt
Normal file
23
tests/unit/CMakeLists.txt
Normal 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()
|
||||
Reference in New Issue
Block a user