Go straight to the correct action (combined with previous notes)

  • 1 Create the Build directory
    mkdir build
    cd build
    Copy the code
  • 2 Run the cmake command to generate a. SLN project based on cmakelists. TXT. Target visual Studio 2017 x64.slnThis step compares pit! CMAKE: Does not match the generator used previously CMAKE: Does not match the generator used previously CMAKE: Does not match the generator used previously
    cmake -G "Visual Studio 15 2017 Win64" .. Cmake -a "x64" -g "Visual Studio 15 2017"..Copy the code
  • If you want to generate.sln for Visual Studio 2015 x86; The prerequisite is that You have Visual Studio 2015 installed
    Cmake -a "Win32" -g "Visual Studio 14 2015" cmake -a "Win32" -g "Visual Studio 14 2015" cmake -G "Visual Studio 14 2015" ..Copy the code
  • 3 Perform the preceding operations to obtain. SLN in the build directory