Use BUILD_SHARED_LIBS cmake standard.
Rename test, fixed cmake warning.
Merge pull request #228 from xantares/shared

Use BUILD_SHARED_LIBS cmake standard.
Merge pull request #229 from xantares/test

Rename test, fixed cmake warning.