build: move CMakeLists.txt to top-level.