1 2add_executable(tftpd tftpd.cpp) 3set_module_type(tftpd win32cui) 4add_importlibs(tftpd advapi32 ws2_32 iphlpapi msvcrt kernel32) 5add_cd_file(TARGET tftpd DESTINATION reactos/system32 FOR all) 6 7if (MSVC) 8 # Disable warning C4267: 'initializing': conversion from 'size_t' to 'unsigned short', possible loss of data 9 target_compile_options(tftpd PRIVATE /wd4267) 10endif() 11 12if(CMAKE_C_COMPILER_ID STREQUAL "GNU") 13 target_compile_options(tftpd PRIVATE -Wno-format-overflow) 14endif() 15