draft `far:about`: separate FarAbout() function
[far2l.git] / farftp / CMakeLists.txt
bloba1eb04d2279eb847a2fdd06d675e0b3c841caaf2
2 project(farftp)
4 set(SOURCES
5 lib/All.cpp
6 src/SetDir.cpp
7 src/cnInit.cpp
8 src/Cfg.cpp
9 src/DeleteFile.cpp
10 src/Key.cpp
11 src/HPut.cpp
12 src/FTPConnect.cpp
13 src/Mem.cpp
14 src/FAR.cpp
15 src/ConnectNB.cpp
16 src/ConnectCmds.cpp
17 src/sock.cpp
18 src/fUtils.cpp
19 src/FGet.cpp
20 src/EnumHost.cpp
21 src/ConnectMain.cpp
22 src/MakeDir.cpp
23 src/Ftp.cpp
24 src/Mix.cpp
25 src/FPut.cpp
26 src/ConnectIO.cpp
27 src/GetOpenInfo.cpp
28 src/Queque.cpp
29 src/Url.cpp
30 src/cnUpload.cpp
31 src/FileList.cpp
32 src/Plugin.cpp
33 src/Event.cpp
34 src/FtpDlg.cpp
35 src/Shortcut.cpp
36 src/ConnectSock.cpp
37 src/FtpAPI.cpp
38 src/FTPHost.cpp
39 src/CmdLine.cpp
40 src/cnDownload.cpp
41 src/JM.cpp
42 src/FTPBlock.cpp
43 src/HGet.cpp
44 src/AskOver.cpp
45 src/Connect.cpp
46 lib/DirList/pctcp.cpp
47 lib/DirList/vx.cpp
48 lib/DirList/os2.cpp
49 lib/DirList/vms.cpp
50 lib/DirList/unix.cpp
51 lib/DirList/os400.cpp
52 lib/DirList/dos.cpp
53 lib/DirList/netware.cpp
54 lib/DirList/skirdin.cpp
55 lib/DirList/eplf.cpp
56 lib/DirList/mvs.cpp
57 lib/DirList/Main.cpp
58 lib/DirList/tcpc.cpp
59 lib/DirList/cms.cpp
60 lib/Notify/Main.cpp
61 lib/Progress/cbFmt.cpp
62 lib/Progress/TraficCB.cpp
63 lib/Progress/Main.cpp
64 lib/Progress/Utils.cpp
67 add_library (farftp MODULE ${SOURCES})
69 target_link_libraries(farftp utils FARStdlib far2l)
71 target_include_directories(farftp PRIVATE .)
72 target_include_directories(farftp PRIVATE src)
73 target_include_directories(farftp PRIVATE ../FARStdlib/include)
74 target_include_directories(farftp PRIVATE ../WinPort)
75 target_include_directories(farftp PRIVATE ../far2l/far2sdk)
77 set_target_properties(farftp
78     PROPERTIES
79         LIBRARY_OUTPUT_DIRECTORY "${INSTALL_DIR}/Plugins/farftp/plug"
80         PREFIX ""
81         SUFFIX ".far-plug-mb")
83 add_custom_command(TARGET farftp POST_BUILD
84     DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/configs
85     COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/configs "${INSTALL_DIR}/Plugins/farftp")