schrodinger / coordgenlibs

Schrodinger-developed 2D Coordinate Generation
BSD 3-Clause "New" or "Revised" License
42 stars 28 forks source link

Allow static builds #43

Closed ricrogz closed 4 years ago

ricrogz commented 4 years ago

This PR implements an option to switch between building shared and static libraries. This is more or less the same I did in maeparser (https://github.com/schrodinger/maeparser/pull/57). Please note that this PR depends on the one in maeparser, and should not be merged before that one.

These changes have also been tested in my CI builds (https://dev.azure.com/ricrogz/mycoordgen/_build/results?buildId=391).

Please note that the Travis and appveyor builds do neither exercise the static builds.

As mentioned in the maeparser PR, I tested that, one these changes are live in maeparser and coordgen, RDKit and Openbabel won't break, and will still be able to build without any changes.