Dear all,
I need the help from you, and thank you for your kindly replay.

Now I want to develop a CAM project.
( I need it to draw 2D vector, and it can export to dxf file and gcode.)

I find the LibreCAD is an open source code CAD project, and which is implemented by the C++ and QT.

So I think if I add the function of "dxf to gcode" in the LibreCAD, which will become an CAM.
How does this program work?

And where can I get the open source code of "dxf to gcode"?
I need a open source code of "dxf to gcode" is implemented by c++.

thank you very much.