Linked Files in Photon Appbuilder Projects

When I add *.cpp files located outside of my project to an Appbuilder project by using “Linked to file in file system” they are not built resulting in undefined references.

This works in Managed Make projects, therefore I assume I need to do something manually. Can someone tell me what needs to be done?