mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
16 lines
524 B
CMake
16 lines
524 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)
|
|
|
|
add_definitions(-Dstrcasecmp=_stricmp)
|
|
|
|
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()
|