split CMakefile into two

Instead of using one giant CMakefile to build two directories, just use one each