One CMakeLists.txt file for each subdirectory

It's easier to work with separate CMakeLists.txt files, one for each
subdirectory.