Give a personal CMakeLists.txt to each subdirectory

The build doesn't work at the moment due to weird issue with CMake's
add_custom_command() that breaks code generation entirely...