From 77987a087507ecccb616a1af158190ffd3082a02 Mon Sep 17 00:00:00 2001 From: Lassi Lehikoinen Date: Wed, 23 Dec 2020 13:03:00 +0200 Subject: Update documentation regarding Qt 6 changes Task-number: QTBUG-88332 Change-Id: Ie6b9310e73b5515c97c892fbc27cd89009011c98 Reviewed-by: Samuli Piippo --- src/networksettings/qnetworksettings.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/networksettings') diff --git a/src/networksettings/qnetworksettings.cpp b/src/networksettings/qnetworksettings.cpp index e4ddbad..79ec2d4 100644 --- a/src/networksettings/qnetworksettings.cpp +++ b/src/networksettings/qnetworksettings.cpp @@ -44,8 +44,15 @@ QT_BEGIN_NAMESPACE #include \endcode - To link against the corresponding C++ libraries, add the following to your - qmake project file: + To link against the corresponding C++ libraries when using CMake to build you application, + add the following to your CMakeLists.txt file: + + \code + find_package(Qt6 COMPONENTS NetworkSettings REQUIRED) + target_link_libraries(mytarget Qt6::NetworkSettings) + \endcode + + Or if you are using qmake to build your application, add the following line to your qmake .pro project file: \code QT += networksettings -- cgit v1.2.3