aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2024-03-12 15:06:00 +0100
committerLeena Miettinen <riitta-leena.miettinen@qt.io>2024-03-12 15:43:23 +0000
commit6a74c829dfe7b8f159e20f43af7bbdf021318d21 (patch)
treec5df3169ffaec3fa7d16438afaabf6f6aea0057e
parent1ac1095d4d4c0a0d08c87b870d3a29243c183a43 (diff)
Doc: Extend "Using CMake with Conan" to vcpkg
The automatic setup also works with vcpkg. Change-Id: I755e59ef0a88105da195e9abe30adca5e3011fae Reviewed-by: Cristian Adam <cristian.adam@qt.io>
-rw-r--r--doc/qtcreator/src/cmake/creator-projects-cmake-building.qdoc28
-rw-r--r--doc/qtcreator/src/conan/creator-projects-conan.qdoc2
2 files changed, 17 insertions, 13 deletions
diff --git a/doc/qtcreator/src/cmake/creator-projects-cmake-building.qdoc b/doc/qtcreator/src/cmake/creator-projects-cmake-building.qdoc
index 0bf54dde2f..c71a8bed8c 100644
--- a/doc/qtcreator/src/cmake/creator-projects-cmake-building.qdoc
+++ b/doc/qtcreator/src/cmake/creator-projects-cmake-building.qdoc
@@ -145,8 +145,8 @@
To view all variables, select the \uicontrol Advanced check box.
- To view all variables by default, select \preferences > \uicontrol CMake >
- \uicontrol General > \uicontrol {Show advanced options by default}.
+ To view all variables by default, go to \preferences > \uicontrol CMake >
+ \uicontrol General and select \uicontrol {Show advanced options by default}.
\image qtcreator-preferences-cmake-general.webp "General tab in CMake Preferences"
@@ -159,8 +159,8 @@
stored in the CMakeLists.txt.user file, so deleting a build directory
does not delete the initial configuration.
- To be asked before \QC resets the changes, select \preferences >
- \uicontrol CMake > \uicontrol General >
+ To be asked before \QC resets the changes, go to \preferences >
+ \uicontrol CMake > \uicontrol General and select
\uicontrol {Ask before re-configuring with initial parameters}.
\section1 Viewing CMake Output
@@ -268,16 +268,20 @@
\uicontrol Build > \uicontrol {Rebuild Project}. This cleans up the
build directory and performs a new build.
- \section1 Using CMake with Conan
+ \section1 Using CMake with Package Managers
- \QC can automatically set up the \l {Conan Package Manager} for use with
- CMake.
+ To automatically set up the \l {Conan Package Manager}{Conan} or
+ \l {vcpkg Package Manager}{vcpkg} package manager for use with CMake:
- Select \preferences > \uicontrol CMake
- \uicontrol General > \uicontrol {Package manager auto setup} to set the
- value of the \c CMAKE_PROJECT_INCLUDE_BEFORE variable to the path to a
- CMake script that installs dependencies from a \c conanfile.txt,
- \c conanfile.py, or \c vcpkg.json file in the project source directory.
+ \list 1
+ \li Create a CMake script file that installs dependencies from a
+ \c conanfile.txt, \c conanfile.py, or \c vcpkg.json file in
+ the project source directory.
+ \li Set the path to the script as the value of the
+ \c CMAKE_PROJECT_INCLUDE_BEFORE variable.
+ \li Go to \preferences > \uicontrol CMake > \uicontrol General and select
+ \uicontrol {Package manager auto setup}.
+ \endlist
\section1 QTC_RUN Environment Variable
diff --git a/doc/qtcreator/src/conan/creator-projects-conan.qdoc b/doc/qtcreator/src/conan/creator-projects-conan.qdoc
index 0e1f60e664..0e7229ba7c 100644
--- a/doc/qtcreator/src/conan/creator-projects-conan.qdoc
+++ b/doc/qtcreator/src/conan/creator-projects-conan.qdoc
@@ -48,5 +48,5 @@
use with CMake.
\sa {Conan Build Configuration}, {Enable and disable plugins},
- {Using CMake with Conan}
+ {Using CMake with Package Managers}
*/