Changing CMake to create a library file