Reputation: 161
I am dealing with relatively big visual studio CPP project (we implemented this project from scratch in windows environment). Now, I have to compile this project in Linux environment. But, I have no idea How I can create a Cmake file from this visual studio project . Is there any straight forward solution?
Thank you
Upvotes: 12
Views: 17594
Reputation: 185
Use CMake Converter. This tool converts VS solutions to CMake projects. https://cmakeconverter.readthedocs.io/en/latest/use.html
Unfortunately, this solution is not ideal and could convert your project with some compilation issues, however, it could be a good platform to begin with. I successfully used it to convert a couple of very old MSBuild projects.
The same (not downvoted) answer here, if you'd like: https://stackoverflow.com/a/60226700/13292744
Upvotes: 2
Reputation: 3372
It would be a great tool if it was possible to convert MSVS project to cmake in Linux environment, but unfortunately I also didn't find such a tool.
However, you can convert VS solution to CMakeLists.txt. You can try this or that tools or some others, but then you need to redesign it.
Upvotes: 5