[CMake] Beginning to compiling CMake file
Michael Ellery
mellery451 at gmail.com
Tue Jul 31 12:56:27 EDT 2018
typical usage would be something like (assuming you are at repo root) :
mkdir mybuild && cd mybuild
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake —build .
you can also opt to configure cmake (the equivalent of the first cmake command above) using a GUI like ccmake or cmake-gui if you prefer. The cmake build type can be changed depending on your needs. If the project depends on other libraries/tools, you might need to install those before building.
HTH,
Mike
> On Jul 30, 2018, at 9:17 PM, CrestChristopher <crestchristopher at gmail.com> wrote:
>
> Hi, I'm a beginner to CMake and for weeks I've been trying to compile a CMake file which I found on a github repository. All I can say is I have a CMakeLists.txt file but I don't know how to compile and I hope someone can help ?
>
> Christopher
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> https://cmake.org/mailman/listinfo/cmake
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <https://cmake.org/pipermail/cmake/attachments/20180731/690909e2/attachment.sig>
More information about the CMake
mailing list