1 2list(APPEND SOURCE 3 sio/PRead.c 4 sio/PWrite.c 5 sio/SAcceptA.c 6 sio/SAcceptS.c 7 sio/SBind.c 8 sio/SClose.c 9 sio/SConnect.c 10 sio/SConnectByName.c 11 sio/SNew.c 12 sio/SRead.c 13 sio/SReadline.c 14 sio/SRecv.c 15 sio/SRecvfrom.c 16 sio/SRecvmsg.c 17 sio/SSelect.c 18 sio/SSend.c 19 sio/SSendto.c 20 sio/SSendtoByName.c 21 sio/SWrite.c 22 sio/SocketUtil.c 23 sio/StrAddr.c 24 sio/UAcceptA.c 25 sio/UAcceptS.c 26 sio/UBind.c 27 sio/UConnect.c 28 sio/UConnectByName.c 29 sio/UNew.c 30 sio/URecvfrom.c 31 sio/USendto.c 32 sio/USendtoByName.c 33 sio/SError.c 34 sio/SWait.c 35 sio/main.c 36 Strn/Dynscat.c 37 Strn/Strncpy.c 38 Strn/Strncat.c 39 Strn/Strntok.c 40 Strn/Strnpcpy.c 41 Strn/Strnpcat.c 42 Strn/strtokc.c 43 Strn/version.c 44 libncftp/open.c 45 libncftp/cmds.c 46 libncftp/util.c 47 libncftp/rcmd.c 48 libncftp/ftp.c 49 libncftp/io.c 50 libncftp/errno.c 51 libncftp/linelist.c 52 libncftp/glob.c 53 ncftp/cmds.c 54 ncftp/cmdlist.c 55 ncftp/getopt.c 56 ncftp/ls.c 57 ncftp/main.c 58 ncftp/version.c 59 ncftp/shell.c 60 ncftp/util.c 61 ncftp/readln.c 62 ncftp/progress.c 63 ncftp/bookmark.c 64 ncftp/pref.c 65 ncftp/preffw.c 66 ncftp/trace.c 67 ncftp/spool.c 68 ncftp/log.c 69 ncftp/getline.c) 70 71add_executable(ncftp ${SOURCE} ncftp.rc) 72set_module_type(ncftp win32cui) 73target_compile_definitions(ncftp PRIVATE 74 HAVE_UTIME_H 75 HAVE_UNISTD_H 76 _CRT_DECLARE_NONSTDC_NAMES=1 77 strcasecmp=_stricmp 78) 79if(CMAKE_C_COMPILER_ID STREQUAL "GNU") 80 target_compile_options(ncftp PRIVATE -Wno-unused-but-set-variable) 81endif() 82add_importlibs(ncftp advapi32 user32 ws2_32 msvcrt kernel32) 83add_cd_file(TARGET ncftp DESTINATION reactos/system32 FOR all) 84