added shared library generation to CMakeFiles.