cpp-netlib/cpp-netlib — pull request #165 by torbjoernk (2012-11-04 12:20:01+00:00)
Title: Enable build of cpp-netlib as shared libraries

As proposed by @deanberris on [Google Groups](https://groups.google.com/d/msg/cpp-netlib/frSsGMTFWDo/cGSWQJAP31wJ), this patch adds an additional *CMake* option `BUILD_SHARED_LIBS` to build *cpp-netlib* as shared libraries.

As a side effect, two further *CMake* options are introduced to selectively enable or disable build of the unit tests and examples: `BUILD_TESTS` and `BUILD_EXAMPLES`.

Some minor modifications to the preprocessor part of the unit tests were necessary to achieve successful build and execution of the unit tests with cpp-netlib as shared libraries.

I tested these modifications with CMake 2.8.9 and 2.8.10 with GCC 4.7 on Linux 64bit. Unfortunately I cannot test on other platforms as OSX or Windows.