// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only

/*!
    \page creator-project-conan.html
    \previouspage creator-reference.html

    \ingroup creator-reference-build-systems

    \title Conan Package Manager

    \summary {The experimental Conan plugin integrates the Conan package manager.}

    \l {https://conan.io}{Conan} is a C/C++ package manager that speeds up the
    integration of C or C++ libraries into your own project. It's available on
    all the \l{Supported platforms}{supported development platforms}.

    Conan can be integrated into most build systems that are integrated into
    \QC:

    \list
        \li \l{https://docs.conan.io/en/latest/integrations/cmake.html}{CMake}
        \li \l{https://docs.conan.io/en/latest/integrations/qbs.html}{Qbs}
        \li \l{https://docs.conan.io/en/latest/integrations/qmake.html}{qmake}
        \li \l{https://docs.conan.io/en/latest/integrations/meson.html}{Meson}
    \endlist

    The client-server architecture of Conan enables the client to fetch packages
    from and upload them to remote servers that act as package storage. The
    client creates the packages, and if necessary, handles building them from
    sources. Because the client has a local cache for package storage, you can
    work offline, as long as no new packages are needed from remote servers.

    To use Conan, install it by using \l{Get and Install Qt}{\QOI} or the tools
    that your operating system has. For example, on Windows, you can use the
    \c {choco install conan} or \c {pip install conan} command.

    \note Enable the Conan plugin to use it.

    For each project, you must write a
    \l{https://docs.conan.io/en/latest/reference/conanfile.html}{\c conanfile.py}
    or \l{https://docs.conan.io/en/latest/reference/conanfile_txt.html}
    {\c conanfile.txt} file that specifies the needed libraries and packages.
    Then, you must edit the build settings of the project to specify the
    location of the file and the contents of the Conan install command.

    \section1 Automatic Package Manager Setup

    To automatically set up the Conan package manager for use with CMake,
    go to \uicontrol Projects > \uicontrol {Project Settings} > \uicontrol CMake,
    and select \uicontrol {Package manager auto setup}.

    To turn off the automatic package manager setup, set
    \c PackageManagerAutoSetup to \c false in \l{Configure Presets}
    {CMake presets} or a \l{Share project settings}{\c CMakeLists.txt.shared} file.

    \sa {Conan Build Configuration}, {Enable and disable plugins},
    {Override CMake settings for a project}, {Using CMake with Package Managers}
*/
