mirror of
https://github.com/johndoe6345789/MetalOS.git
synced 2026-04-24 13:45:02 +00:00
24 lines
603 B
CMake
24 lines
603 B
CMake
# 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()
|