mirror of
https://github.com/reactos/reactos.git
synced 2024-11-10 00:34:39 +00:00
14 lines
484 B
CMake
14 lines
484 B
CMake
|
|
add_executable(tftpd tftpd.cpp)
|
|
set_module_type(tftpd win32cui)
|
|
add_importlibs(tftpd advapi32 ws2_32 iphlpapi msvcrt kernel32)
|
|
add_cd_file(TARGET tftpd DESTINATION reactos/system32 FOR all)
|
|
|
|
if (MSVC)
|
|
# Disable warning C4267: 'initializing': conversion from 'size_t' to 'unsigned short', possible loss of data
|
|
target_compile_options(tftpd PRIVATE /wd4267)
|
|
endif()
|
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
|
target_compile_options(tftpd PRIVATE -Wno-format-overflow)
|
|
endif()
|