cmake_minimum_required(VERSION 3.31) project(nsd C) file(GLOB sources *.c) add_executable(nsd ${sources}) target_link_libraries(nsd c -l:crt0.o) install(TARGETS nsd)