This project is just an example of how to set up a C++ build using CMake.
cmake -H. -Bbuild
cmake --build build --clean-first
./bin/CMake_Example
Open the Visual Studio IDE 2019, click on "Open a local folder" and select the CMake_Example
folder.
In the Visual Studio top bar, click on Build > Build All
-
In the file tree, double click on the file
CMakeLists.txt
in root folder. -
Click on
Current Document (CMakeLists.txt)
button, on the Navigation tool bar.