What your looking for is a "Pick and Place Machine". Siemens and Fuji make these types of machines for printed circuit boards.
First solder is screened on the board, in your case glue.
Second a Small Vacuum Nozzle picks up electronic components and places them precisely on the board.
Then off to the oven where the solder is heated to complete the task.
These are expensive machines that are in fact CNC's of a different kind.