<div dir="ltr">cmake --build /path/to/build/dir [--target <target name>]<div><br></div><div style>I usually go to the build directory and type `cmake --build .` You can pass extra options to the underlying build system by adding `--` afterwards, so if you are using, for example, the Makefile generator, you can build in parallel with `cmake --build . -- -j5`</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 16, 2013 at 11:18 AM, Saad Khattak <span dir="ltr"><<a href="mailto:saadrustam@gmail.com" target="_blank">saadrustam@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Now that I have a project up and running with CMake generated native project files, can I trigger a build with CMake as well? That is, a cross-platform way to trigger a build on the project without the need for me to call 'msbuild' on windows for example?</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>- Saad</div></font></span></div>
<br>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Cheers,<br>Leif
</div>