On Windows you could ask CMake to generate a Visual Studio 2017 project (and solution) while under Linux you could ask to get a Makefile. In this case, rather than to get locked within the CodeBlocks or the XCode way of describing the projects, it is safer to use CMake in order to describe how to build the project on the various platforms you are targeting. You may be working on project which is multi-platforms.In this case, if you want to edit and debug the code from VS Code you have to use CMake from VS Code You may get from GitHub (or any other places) a project that come with a CMakeLists.txt.Well, among all the good reasons to use CMake and Make, here are 2 scenarios which may happen: Why one would follow such process rather than calling the compiler available locally (as explained in this page for example) ? This will generate a Release version of the application. When the application is bug free, run the task which generates the Makefile of the Release version.Debug, debug and debug again the application. This will generate a new Debug versions each time. While editing the code, call, many many times the task that invoke NMake.Run once the task which generates the Makefile of the Debug version. When everything will be in place, for the developer, the workflow will be as follow :
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |