Created by: DannyIsFunny
modify cmake/generic.cmake to fix compiling issue: fix the absolute path of generated_code.cc which is included into dynamic library