Mixed python/cpp Ament package

How would a cpp file be integrated into a pakage within the setup.py? Would it be defined as an external module?