1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00
putty-source/ssh/CMakeLists.txt
Simon Tatham 4fcb3bbe81 Move host CA config box out into its own source file.
In the course of polishing up this dialog box, I'm going to want it to
actually do cryptographic things (such as checking validity of a
public key blob and printing its fingerprint), which means it will
need to link against SSH utility functions.

So I've moved the dialog-box setup and handling code out of config.c
into a new file in the ssh subdirectory and in the ssh library, where
those facilities will be conveniently available.

This also means that dialog-box setup code _won't_ be linked into
PuTTYtel or pterm (on either platform), so I've added a stub source
file to provide its entry-point function in those tools. Also,
provided a const bool to indicate whether that dialog is available,
which we use to decide whether to recognise that command-line option.
2022-05-01 10:16:19 +01:00

53 lines
956 B
CMake

add_library(sshcommon OBJECT
bpp1.c
bpp2.c
bpp-bare.c
ca-config.c
censor1.c
censor2.c
common.c
connection1.c
connection2.c
crc-attack-detector.c
gssc.c
login1.c
pgssapi.c
portfwd.c
../sshpubk.c
../sshrand.c
transient-hostkey-cache.c
transport2.c
verstring.c
x11fwd.c
zlib.c)
add_library(sftpcommon OBJECT sftpcommon.c)
add_library(sshclient STATIC
agentf.c
connection1-client.c
connection2-client.c
kex2-client.c
mainchan.c
sharing.c
ssh.c
userauth2-client.c
$<TARGET_OBJECTS:sshcommon>
$<TARGET_OBJECTS:all-backends>
$<TARGET_OBJECTS:logging>)
add_library(sshserver STATIC
connection1-server.c
connection2-server.c
kex2-server.c
login1-server.c
server.c
sesschan.c
sftpserver.c
userauth2-server.c
$<TARGET_OBJECTS:sftpcommon>
$<TARGET_OBJECTS:sshcommon>)
add_sources_from_current_dir(sftpclient sftp.c)
target_sources(sftpclient PRIVATE $<TARGET_OBJECTS:sftpcommon>)