2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_executable(tftpd tftpd.cpp)
|
|
|
|
set_module_type(tftpd win32cui)
|
2014-10-13 11:03:35 +00:00
|
|
|
add_importlibs(tftpd advapi32 ws2_32 iphlpapi msvcrt kernel32)
|
2018-03-31 15:57:22 +00:00
|
|
|
add_cd_file(TARGET tftpd DESTINATION reactos/system32 FOR all)
|
2020-09-21 10:16:02 +00:00
|
|
|
|
2021-06-29 08:03:28 +00:00
|
|
|
if (MSVC)
|
|
|
|
# Disable warning C4267: 'initializing': conversion from 'size_t' to 'unsigned short', possible loss of data
|
|
|
|
target_compile_options(tftpd PRIVATE /wd4267)
|
|
|
|
endif()
|
|
|
|
|
2021-04-09 00:58:19 +00:00
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
2020-09-21 10:16:02 +00:00
|
|
|
target_compile_options(tftpd PRIVATE -Wno-format-overflow)
|
|
|
|
endif()
|