Using LightweightSecureTCP in your CMake project
This guide explains how to integrate LightweightSecureTCP into your own CMake-based desktop application.
π§© Step 1 β Download the Repositoryβ
Clone (or download) the repository:
git clone https://github.com/sDenizOzturk/lightweight-secure-tcp.git
Copy lib folder to your project:
cp -r lightweight-secure-tcp/lib/LightweightSecureTCP/ your-project/lib/
π Step 2 β Add the Folder to Your Projectβ
Place the folder like this:
your-project/
βββ lib/
β βββ LightweightSecureTCP/
β βββ # ...other libraries
# ...other project files & folders
βοΈ Step 3 β Modify CMakeLists.txt
β
Add the following lines to your CMakeLists.txt
:
add_subdirectory(lib/LightweightSecureTCP)
target_link_libraries(your_target PRIVATE LightweightSecureTCP)
Replace
your_target
with the name of your executable or application target.
β Thatβs Allβ
LightweightSecureTCP is now part of your project.
No additional setup or external dependencies are required.
For embedded usage, see the PlatformIO setup.