get libraries and include_dirs from generated module correctly