From d644632382f4a6f7f68e35cf392d794073675799 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Wed, 20 Mar 2024 16:29:45 +0100 Subject: [PATCH] Doc: Remove references to CMake from a qmake-specific topic Fixes: QTCREATORBUG-30580 Change-Id: Ic722ca8c6cfcf570aec48eb957ebfdc2ec929011 Reviewed-by: Christian Kandeler --- .../creator-projects-libraries.qdoc | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/doc/qtcreator/src/projects/creator-only/creator-projects-libraries.qdoc b/doc/qtcreator/src/projects/creator-only/creator-projects-libraries.qdoc index b96eafb5e77..c4f8d905a33 100644 --- a/doc/qtcreator/src/projects/creator-only/creator-projects-libraries.qdoc +++ b/doc/qtcreator/src/projects/creator-only/creator-projects-libraries.qdoc @@ -120,7 +120,7 @@ \list 1 - \li Select \uicontrol File > \uicontrol {New Project} > + \li Go to \uicontrol File > \uicontrol {New Project}, and select \uicontrol Library > \uicontrol {C++ Library}. If your top level project is a subdirs project or contains one, you may add the library to the project. However, this does not link other libraries from @@ -131,16 +131,16 @@ \image qtcreator-add-library-internal-project-location.webp {Project Location dialog} - \li In the \uicontrol Name field, give a name for the library. For example, + \li In \uicontrol Name, give a name for the library. For example, \e MyLibrary. \li Select \uicontrol Next (on Windows and Linux) or \uicontrol Continue (on \macos) to open the \uicontrol {Define Build System} dialog. - \li Select \uicontrol Next or \uicontrol Continue to use CMake as the - build system. + \li In \uicontrol {Build system}, select \uicontrol qmake. - The \uicontrol {Define Project Details} dialog opens. + \li Select \uicontrol Next or \uicontrol Continue to open the + \uicontrol {Define Project Details} dialog. \image qtcreator-add-library-internal-project-details.webp {Define Project Details dialog} @@ -170,7 +170,7 @@ \image qtcreator-add-library-internal.webp {Adding an internal library} - \li In the \uicontrol Library field, select \e mylibrary, and then select + \li In \uicontrol Library, select \e mylibrary, and then select \uicontrol Next. \li Select \uicontrol Finish to add the library declaration to the @@ -178,15 +178,7 @@ \endlist - When using CMake, the \c target_link_libraries command is added to the - CMakeLists.txt file: - - \badcode - target_link_libraries(myapplication PRIVATE mylibrary) - \endcode - - When using qmake, the following library declaration is added to the .pro - file: + The wizard adds the following library declaration to the .pro file: \badcode win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../../../projects/mylib/release/ -lmylib