I have recently been trying to set up my CMake environment and some 'hello world' code in C++. I added a CMakeLists.txt
and added my configurations, but when I ran cmake .
in the command line, something was different from all of the tutorials.
The people on the tutorials were using a Unix based system, so the command cmake .
was producing a 'makefile'. They then built the makefile using the command make
.
Since I'm on windows, it generated a msvc .sln
file instead of a makefile. My question is - how can I build the .sln file, similar to how they did it on Linux? I want to do it without Visual Studio 2019 and preferably in the command prompt.
I have tried searching for this question, but haven't found what I'm looking for. Thank you in advance.