lczech / genesis

A library for working with phylogenetic and population genetic data.
http://genesis-lib.org/
GNU General Public License v3.0
57 stars 12 forks source link

Change CMakeLists.txt to generate static and shared targets always #8

Closed computations closed 1 year ago

computations commented 2 years ago

This change conditionally sets the property EXCLUDE_FROM_ALL on the shared and static versions of the library, based on the options GENESIS_BUILD_SHARED_LIB and GENESIS_BUILD_STATIC_LIB. The purpose of this is so that apps which want to link with a specific version don't have to bother with configuring anything, and instead can just link with the shared or static target.

lczech commented 1 year ago

Thank you @computations! Took me a while to get to work on the CMake setup again, but finally got to it, and merged your PR.