conan-io / docs

conan.io reStructuredText documentation
http://docs.conan.io
MIT License
104 stars 346 forks source link

Add example using CMakeToolchain with Ninja as generator #3771

Closed uilianries closed 2 weeks ago

uilianries commented 3 weeks ago

Hi!

In this new entry, I tried to explain how to build the Conan template project cmake_exe using CMake + Ninja.

My initial idea was describing a little about CMake generators, then how to use Conan configuration in different ways.

Current Preview:

Screenshot 2024-06-11 at 11-02-04 Using CMakeToolchain with different generators Ninja example — conan 2 4 0 documentation

closes #3767

uilianries commented 3 weeks ago

@czoido I've updated, it's simpler now. No longer shows example with global and command line, but use profile by default. There are links exposing how to configure it using others.

@RubenRBS Please, take a look in the cmake generators section. I added links and a note to avoid confusion.

@memsharded The cmake new usage is now fixed and I checked other parts of the documentation using the same pattern.

You can use the preview in the description to take a look. It's aligned with the commit 9224c09 (latest).

uilianries commented 3 weeks ago

The preview in the description is updated, in case you want to have a view of the rendered version.

uilianries commented 2 weeks ago

Thank you everyone!