<div dir="auto"><div><div class="gmail_quote"><div dir="ltr">On Wed, Aug 1, 2018, 03:46 CrestChristopher <<a href="mailto:crestchristopher@gmail.com">crestchristopher@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, I'm using CMake for Windows as I was informed that I couldn't use <br>
`make` as the CMakeLists.txt file was only for CMake.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">CMake is a meta build system which means that on for example Linux it henerates make fliles so CMakeLists.txt should be run with cmake to generate those make files and then you run make in the build directory.</div><div dir="auto"><br></div><div dir="auto">On Windows you usually use visual studio so cmake generates build and project files for it there.</div><div dir="auto"><br></div><div dir="auto">Not use make and use cmake instead in this case means that you should use cmake to generate build files with cmake and not change generated build files by hand. It doesn't mean that after running cmake you shouldn't run make on those generated files if they were generated for make.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Within CMake for Windows I select the location of the source code which <br>
is the cloned repository which include the CMakeLists.txt file that I <br>
want to compile, followed by I select a folder where to build the <br>
binaries; I'm then prompt for a generator for the project. Up to this <br>
point am I doing this correctly ?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Michael already answered for you how to build it from command line on all platforms (on Linux you can also use 'make' directly instead of running 'cmake - build'). If you selected to generate files for Visual Studio cmake also generated vs project file so you can open it in ide and run build there instead.</div><div dir="auto"><br></div><div dir="auto">Hope this clarifies things a bit more.</div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Domen</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 7/31/2018 12:56 PM, Michael Ellery wrote:<br>
> mkdir mybuild && cd mybuild<br>
> cmake -DCMAKE_BUILD_TYPE=Release ..<br>
> cmake â€”build .<br>
</blockquote></div></div></div>