Moved the CMakeLists.txt for Library builds to build directory.