elhayra / tcp_server_client

A thin and simple C++ TCP client server
MIT License
155 stars 53 forks source link

Building client and server executables together #5

Closed doleron closed 3 years ago

doleron commented 3 years ago

This PR is intended to allow the build of both server and client once as default cmake configuration. It is possible to build only server or only client by setting -DCLIENT_EXAMPLE=OFF or -DSERVER_EXAMPLE=OFF according. The readme file was updated to cover the changes as well. The common code is package into a static lib to be used by the example code of further applications.