You can use the following listed tips and tricks in the CodeWarrior for Microcontrollers V10.x:
The Properties for <project> dialog box appears.
The C/C++ File Type dialog box appears.
The C/C++ File Type dialog box closes.
Now, you can add the required file to the project.