In Chapter 7, Sending Sensor Readings to a Device with a Non-UI App, we chose to place all configuration related to the channel_broadcaster subproject in the channel_broadcaster.pri QMake project include. This allowed us to easily include the channel_broadcaster component in our client applications. For the very same reason, we will now add the QHttp library dependency to the same file so that when the component's sources are compiled, the library is properly linked. This process amounts to the following steps:
- Adding the path containing the QHttp header files to QMake's INCLUDEPATH variable
- Ensuring that the library binary file is copied to the deployment folder
- Ensuring that the ...