Doc: Remove references to CMake from a qmake-specific topic

Fixes: QTCREATORBUG-30580
Change-Id: Ic722ca8c6cfcf570aec48eb957ebfdc2ec929011
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Leena Miettinen
2024-03-20 16:29:45 +01:00
parent 1be9f9cdc7
commit d644632382

View File

@@ -120,7 +120,7 @@
\list 1 \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 \uicontrol Library > \uicontrol {C++ Library}. If your top level
project is a subdirs project or contains one, you may add the library project is a subdirs project or contains one, you may add the library
to the project. However, this does not link other libraries from 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} \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. \e MyLibrary.
\li Select \uicontrol Next (on Windows and Linux) or \uicontrol Continue \li Select \uicontrol Next (on Windows and Linux) or \uicontrol Continue
(on \macos) to open the \uicontrol {Define Build System} dialog. (on \macos) to open the \uicontrol {Define Build System} dialog.
\li Select \uicontrol Next or \uicontrol Continue to use CMake as the \li In \uicontrol {Build system}, select \uicontrol qmake.
build system.
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} \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} \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. \uicontrol Next.
\li Select \uicontrol Finish to add the library declaration to the \li Select \uicontrol Finish to add the library declaration to the
@@ -178,15 +178,7 @@
\endlist \endlist
When using CMake, the \c target_link_libraries command is added to the The wizard adds the following library declaration to the .pro file:
CMakeLists.txt file:
\badcode
target_link_libraries(myapplication PRIVATE mylibrary)
\endcode
When using qmake, the following library declaration is added to the .pro
file:
\badcode \badcode
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../../../projects/mylib/release/ -lmylib win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../../../projects/mylib/release/ -lmylib