add CMake definitions to build and install shared libraries and headers
Merge pull request #288 from infinity0/0.10-devel

add CMake definitions to build and install shared libraries and headers