CoAP Multicast Discovery example: clean-up build files
* Use qt_standard_project_setup() instead of manually enabling moc and
uic (CMake only)
* Use PRIVATE linking (CMake only)
* Do not use C++11 config - we're on C++17 now (qmake only)
* Remove the QT_DEPRECATED_WARNINGS definition - it has no effect since
Qt 5.13 (both qmake and CMake)
This commit is a preparation for using qml modules
Task-number: QTBUG-113858
Pick-to: 6.6 6.5
Change-Id: I9bd07769514e26e54fd7ad5829dd6d0c1351be46
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>