reactos/base/services/tftpd/CMakeLists.txt
2024-10-20 14:12:25 +03:00

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()