The easiest way to "port" a Visual Studio C ++ project to compile on Linux?

Developed a Visual Studio (2012) C ++ project and wondered what would be the most convenient way to copy it to Linux so that I can recompile the whole project there? Assume C ++ is platform independent.

Will there be a case of copying all the .h and .cpp files manually into one folder, copy this folder to Linux and then somehow create a script (makefile?) That will control how the files are compiled? I'm not too sure that the makefile is what I need - but is there any mechanism so that I can compile the entire project from one command on the terminal?

+3
source share
2 answers

. \r\n\n .cpp .h .

Linux raw make. make - ; makefile , .

+1

, (, @MSalters - ), .vcxproj Linux. , Visual Studio - make .

Makefile - ( ) . , , , MSBuild .sln.

, , Linux - CMake, makefile, .

- , VS make , VS2012 ( , )

0

All Articles