Edit CMakeLists.txt - Making Libraries

Add Cmake configurations for libraries.
CMakeLists.txt: Fix making libraries.