OpenEtherCATsociety / SOEM

Simple Open Source EtherCAT Master
Other
1.35k stars 686 forks source link

CMakeLists.txt: Add possibility to build library as shared #843

Open DasRoteSkelett opened 3 months ago

DasRoteSkelett commented 3 months ago

This adds the option to build the soem library also as shared object. Note that the default is untouched, so by default, it will still build a static library.

The BUILD_SHARED_LIBS is the standard way of doing it, many tools use this semantics to influence the output to be the desired type (whichever you want).