9 lines
349 B
CMake
9 lines
349 B
CMake
file(GLOB test_sources ${CMAKE_CURRENT_SOURCE_DIR}/*.c)
|
|
|
|
foreach (test ${test_sources})
|
|
get_filename_component(test_name ${test} NAME_WE)
|
|
add_executable(${test_name} ${test} $<TARGET_OBJECTS:crt>)
|
|
target_compile_options(${test_name} PRIVATE -ffreestanding -nostdlib -nostdinc)
|
|
target_link_libraries(${test_name} c)
|
|
endforeach (test)
|