AMGX
AMGX copied to clipboard
Make shared library, tests and examples optional
Make AMGX shared library (amgxsh) building optional for the following good reasons:
- All CMake projects are generally encouraged to support BUILD_SHARED_LIBS option, it is often found in the state-of-art opensource software
- We want to link AMGX statically, in order to have only what we need in the application binary
- AMGX shared library throws "relocation truncated to fit" errors upon linking in Debug mode
Furthermore, adding AMGX_WITH_TESTS and AMGX_WITH_EXAMPLES options to disable examples and tests, e.g. for production builds.
By default, the previous build behavior is preserved.
This looks good, thanks. Give me a short while to pass it through our tests.