Secure CoAP Client: clean-up build files
* Use qt_standard_project_setup() instead of manually enabling moc
(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: Iad798bf7bc0471dc2bdf04b093547b7717d74e30
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>