src/CMakeLists.txt: add an option to use pre-generated sources

Makes it posisble to build without Bison, etc.