maxflow
maxflow copied to clipboard
Modified CMakeLists to support building shared or static libraries
I have modified CMakeLists.txt to support the standard CMake build option BUILD_SHARED_LIBS=ON/OFF.
This allows the user to select desired library type via a standard method at configuration time (needed if static linking libmaxflow to a project). There is not currently a convenient way to set this without manually changing line 59 in CMakeLists.txt from SHARED to STATIC.
This change does not affect the default behavior of the package.
Is there a chance this can be merged? I'd rather not have to pull changes from a PR and have the latest changes be reflected on the main branch.