]> git.feebdaed.xyz Git - 0xmirror/SOEM.git/commit
CMakeLists.txt: Add possibility to build library as shared
authorMatthias Schoepfer <msc@fp-robotics.com>
Wed, 31 Jul 2024 15:36:30 +0000 (17:36 +0200)
committerHans-Erik Floryd <hans-erik.floryd@rt-labs.com>
Tue, 11 Mar 2025 18:44:21 +0000 (19:44 +0100)
commit5c35c34a91f98715f496d4e276f7f186e7e406ec
treee5a6e9bec17192e9fa7613b9469c390090f56b53
parent2752dc25882ab24d7cfcad674226b65270fb0c61
CMakeLists.txt: Add possibility to build library as shared

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](https://cmake.org/cmake/help/latest/variable/BUILD_SHARED_LIBS.html)
is the standard way of doing it, many tools use this semantics to influence
the output to be the desired type (whichever you want).

Signed-off-by: Matthias Schoepfer <matthias.schoepfer@googlemail.com>
CMakeLists.txt