Skip to main content

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.