file(GLOB sources *.c *.h include/magenta/debug/*.h) add_library(magenta_debug STATIC ${sources}) target_include_directories(magenta_debug PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include) target_compile_options(magenta_debug PRIVATE -ffreestanding -nostdlib)