Generate gdev_autogen.h in CMake