Catégories

How to compile C++ code with VS Code, CMake and NMake

Bonjour! This is a step by step procedure which explains how to compile C++ code using CMake and VS Code (aka Visual Studio Code). As you will see the compiler and the linker I will use are the ones coming with Visual Studio 2017. However the steps explained here should be similar if you use another compiler.

Oh, by the way… Before to read further, I realize you need to know (more or less) what is CMake, Make (or NMake) and a Makefile. Yes, I will give some short explanations but this page is not a CMake tutorial. As for …

Lire la suite How to compile C++ code with VS Code, CMake and NMake