

To successfully complete this tutorial, you must do the following: If you have any problems, feel free to file an issue for this tutorial in the VS Code documentation repository. For those subjects, there are many good resources available on the Web. This tutorial does not teach you details about the Microsoft C++ toolset or the C++ language. In this tutorial, you configure Visual Studio Code to use the Microsoft Visual C++ compiler and debugger on Windows.Īfter configuring VS Code, you will compile and debug a simple Hello World program in VS Code. Configure IntelliSense for cross-compiling.

Hit the Ctrl+F5 key to launch the program. You can now edit and compile your program in the Visual Studio IDE.To run the builds from the Build menu or from keyboard shortcuts, set the ZED_Tutorial_1 target as the startup project.Open Project.sln and set it in Release mode. A Visual Studio solution has been generated.You can directly open the solution by clicking on or by closing the cmake-gui window and opening the build folder. CMake has now generated your project in the build directory.Click on to build the Visual Studio project files.CMake may take a few seconds to configure the project.ĬMAKE needs to define the target platform as 圆4, on new version it is set by default, if not you can set it. Choose Visual Studio in Win64 and click on. Another dialog window will ask you to specify a generator for your project.A dialog window asks you if CMake can create the “build” folder.In “Where to build the binaries“, enter the previous path and add: /build.Here we created a project folder “ZED_Tutorial_1” in Documents. In “Where is the source code“, enter the path of the project folder where the CMakeLists.txt is located.Note: When installing Visual Studio, make sure to select Visual C++ option. Applications must be compiled for 64-bit. On Windows, building an application with the ZED SDK requires Cmake (3.5.0+) or higher and Visual Studio 2015 or higher.

The following files should be in the directory:
