diff options
Diffstat (limited to 'src/networksettings/qnetworksettings.cpp')
-rw-r--r-- | src/networksettings/qnetworksettings.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
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 <QtNetworkSettings> \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 |