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 7add_definitions(-Dstrcasecmp=_stricmp) 8 9if (MSVC) 10 # Disable warning C4267: 'initializing': conversion from 'size_t' to 'unsigned short', possible loss of data 11 target_compile_options(tftpd PRIVATE /wd4267) 12endif() 13 14if(CMAKE_C_COMPILER_ID STREQUAL "GNU") 15 target_compile_options(tftpd PRIVATE -Wno-format-overflow) 16endif() 17