C:\SXCore This file path contains header and c files that I use in multiple projects. According to the project I open, I include the relevant functions from here to my project and I use project-specific macros to make the distinction here. However, as I change the project I open, I need to change the macro manually. The file path of my project is C:\Products\SMotion\SM8000S6DEP1020IN01. Can I build a structure that can automatically change the macros I change in SXCore as the project I open differs.

As you can see in the picture, if I do the same process in each project, the problem seems to be solved, but if you look at the file path, it contains the file path of the project. I need to find a way to do this in the SXCore file path, because I think that using separate file paths for each project I open will not solve my problem.
I defined a macro to define each of the projects I opened, for example, I defined a special macro for the RobotA project and a special macro for RobotB and imported the header files to SXCore, but. In order to import them, I need to include the file path of the project I opened. Since I have more than one project and only one SXCore, what I need is a macro that changes when I open the project. In this way, I will be able to get the functions I want without making changes manually in SXCore thanks to the automatically assigned macro.
There is Preprocessor option in Project's properties -> C/C++ -> Preprocessor Definitions. You could add your custom Marco for each project, such as : _MyWindows or _MyLinux.
Then in your ConfigerManagement.h:
This way you can avoid using project names but generic macros to include header files.