1
General / How to converted from a cmake project to a Visual studio project
« on: December 10, 2024, 07:34:29 am »
Hi
I want to include all SFML source codes in my project solution.
But when I downloaded the source package of SFML 2.5.1, I got the cmake project. (I never knew what cmake was before.)
I tried several methods to convert it to a Visual Studio project but did not succeed.
- I tried to open the SFML folder with VS, it can read cmake and generate something similar to a project but it does not allow me to add my game project to it.
- I try to use the cmake command
[cmake -G "Visual Studio 17 2022"]
It can generate VS projects.
But inside the vcxproj file has a lot of "hard code paths" such as "c:/SFML" which is not working for me.
In summary, is there any easy way to convert cmake project to vs project? (Same as the old day when it is SFML 1.6.)
Please give some advice to me. Thanks
I want to include all SFML source codes in my project solution.
But when I downloaded the source package of SFML 2.5.1, I got the cmake project. (I never knew what cmake was before.)
I tried several methods to convert it to a Visual Studio project but did not succeed.
- I tried to open the SFML folder with VS, it can read cmake and generate something similar to a project but it does not allow me to add my game project to it.
- I try to use the cmake command
[cmake -G "Visual Studio 17 2022"]
It can generate VS projects.
But inside the vcxproj file has a lot of "hard code paths" such as "c:/SFML" which is not working for me.
In summary, is there any easy way to convert cmake project to vs project? (Same as the old day when it is SFML 1.6.)
Please give some advice to me. Thanks