Importing CPP libs to CubeMX project


I am trying to import .cpp  file to stm32f103c8 CubeMX project. I have a CPP file I want to import to keil. How can I compile CPP and C files at the same time on Keil. Can I do that?

I want to use the HAL library also I have one cpp file.  I couldn't figure out how compiler settings should be.

Thank you for your help.

More questions in this forum