Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 869 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 869 Bytes

Use CMake to generate visual studio C++ projects

Prerequisites The visual studio IDE and CMake Tool must be installed on the PC.

Method 1: Command line mode

  • Open the powershell terminal in the 'sample/windows' directory and run the following command to create a C++ project in the' Visual Studio 15 2017 Win64 'environment as an example.
mkdir build

cd build

cmake -G "Visual Studio 15 2017 Win64" .. /

Method 2: CMake GUI

  • Create a build folder in the sample/windows director

  • Run CMake GUI, complete related configuration, generate VC++ project, compile and run