Initial developing environment:
"C:Program Files (x86)Microsoft Visual Studio 12.0VCvcvarsall.bat" x86
Use cmake to generate a project file.
E:projectprivatedoubleView2>cmake ./

-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.17134.
-- The C compiler identification is MSVC 19.21.27702.2
-- The CXX compiler identification is MSVC 19.21.27702.2
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx64/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx64/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx64/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
Cmake build project to another directory:
cmake . -Bbuild_vs
Its syntax is cmake -Hpath/to/source -Bpath/to/build
Open Developer Command Prompt for VS 2019:
E:projectmasterBranchdemo8_2>devenv.exe demo8_2.sln /build
It generates debug executable file default. We can make it build project for the release version.
E:projectmasterBranchdemo8_2>devenv.exe demo8_2.sln /build Release
How to print log to stdout? We can use devenv.com instead of devenv.exe to build project, there are some output logs by the way.

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments

Content Summary
: Input your strings, the tool can get a brief summary of the content for you.

X
0
Would love your thoughts, please comment.x
()
x