### Include Example Subdirectories Source: https://github.com/kde/networkmanager-qt/blob/master/examples/CMakeLists.txt Adds subdirectories for 'createconnection' and 'secret_agent' to the build. These likely contain further examples or modules for specific NetworkManager functionalities. ```cmake add_subdirectory(createconnection) add_subdirectory(secret_agent) ``` -------------------------------- ### Build Example Application with NetworkManager-Qt Source: https://github.com/kde/networkmanager-qt/blob/master/examples/createconnection/CMakeLists.txt This CMakeLists.txt file defines an executable target named 'createConnectionExample'. It specifies the source files and links the necessary libraries, KF6::NetworkManagerQt and Qt6::Core, to enable NetworkManager functionality in the application. ```cmake set(createConnectionExample_SRCS main.cpp ) add_executable(createConnectionExample ${createConnectionExample_SRCS}) target_link_libraries(createConnectionExample KF6::NetworkManagerQt Qt6::Core ) ``` -------------------------------- ### Build Example Executable with NetworkManager-Qt Source: https://github.com/kde/networkmanager-qt/blob/master/examples/CMakeLists.txt Defines sources, creates an executable, and links against KF6::NetworkManagerQt and Qt6::Core. Use this to build applications that interact with NetworkManager. ```cmake set(exampleNetworkManagerQt_SRCS main.cpp ) add_executable(exampleNetworkManagerQt ${exampleNetworkManagerQt_SRCS}) target_link_libraries(exampleNetworkManagerQt KF6::NetworkManagerQt Qt6::Core ) ``` -------------------------------- ### Build Secret Agent Executable Source: https://github.com/kde/networkmanager-qt/blob/master/examples/secret_agent/CMakeLists.txt Configures the build for the secret agent example executable. Links against KF6::NetworkManagerQt and Qt6::Core libraries. ```cmake set(secretAgentExample_SRCS main.cpp ) add_executable(secretAgentExample ${secretAgentExample_SRCS}) target_link_libraries(secretAgentExample KF6::NetworkManagerQt Qt6::Core ) ``` -------------------------------- ### Add Static Library Source: https://github.com/kde/networkmanager-qt/blob/master/src/fakenetwork/CMakeLists.txt Creates a static library named 'fakeNetwork' using the defined source files. Static libraries are linked directly into the executable. ```cmake add_library(fakeNetwork STATIC ${fakeNetwork_SRCS}) ``` -------------------------------- ### List of NetworkManager-Qt Autotests Source: https://github.com/kde/networkmanager-qt/blob/master/autotests/settings/CMakeLists.txt This is a list of test cases that will be compiled and run as part of the NetworkManager-Qt autotests suite. Each item corresponds to a specific setting or feature being tested. ```cmake NETWORKMANAGERQT_AUTOTESTS( 8021xsettingtest adslsettingtest bluetoothsettingtest bondsettingtest bridgesettingtest bridgeportsettingtest cdmasettingtest connectionsettingtest dcbsettingtest gsmsettingtest infinibandsettingtest iptunnelsettingtest ipv4settingtest ipv6settingtest matchsettingtest macsecsettingtest olpcmeshsettingtest ovsbridgesettingtest ovsinterfacesettingtest ovspatchsettingtest ovsportsettingtest pppsettingtest pppoesettingtest proxysettingtest serialsettingtest teamportsettingtest tunsettingtest tcsettingtest usersettingtest vlansettingtest vxlansettingtest vpnsettingtest wimaxsettingtest wiredsettingtest wireguardsettingtest wirelesssettingtest wirelesssecuritysettingtest ) ``` -------------------------------- ### Link Libraries Source: https://github.com/kde/networkmanager-qt/blob/master/src/fakenetwork/CMakeLists.txt Links the fakeNetwork library against its dependencies. This includes KF6NetworkManagerQt, Qt6 core, network, DBus modules, and the NetworkManager pkg-config package. ```cmake target_link_libraries(fakeNetwork KF6NetworkManagerQt_static Qt6::Core Qt6::Network Qt6::DBus PkgConfig::NetworkManager) ``` -------------------------------- ### Define NetworkManager-Qt Autotests Macro Source: https://github.com/kde/networkmanager-qt/blob/master/autotests/settings/CMakeLists.txt This macro iterates through provided test names and adds them as C++ test executables. It ensures necessary libraries like Qt6::Test and KF6NetworkManagerQt_static are linked. ```cmake macro(NETWORKMANAGERQT_AUTOTESTS) foreach(_testname ${ARGN}) ecm_add_test(${_testname}.cpp LINK_LIBRARIES Qt6::Test KF6NetworkManagerQt_static) endforeach(_testname) endmacro(NETWORKMANAGERQT_AUTOTESTS) ``` -------------------------------- ### Include Directories Source: https://github.com/kde/networkmanager-qt/blob/master/src/fakenetwork/CMakeLists.txt Specifies the include directories for the fakeNetwork library. Use this to ensure header files are found during compilation. ```cmake include_directories( ${CMAKE_SOURCE_DIR}/src/settings ) ``` -------------------------------- ### Source Files Definition Source: https://github.com/kde/networkmanager-qt/blob/master/src/fakenetwork/CMakeLists.txt Defines the list of source files for the fakeNetwork library. Ensure all necessary .cpp files are included here. ```cmake set(fakeNetwork_SRCS accesspoint.cpp activeconnection.cpp connection.cpp device.cpp fakenetwork.cpp settings.cpp wireddevice.cpp wirelessdevice.cpp ) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.