simplification of the cmake.

only generate one .so/.a now.
adding soname in library