split CMakeLists.txt and fix include paths