0da123d67b
Needed for subsequent change that will check and error out if the version is lower than 3.16. We do that to ensure all policies introduced by CMake up to version 3.16 have their behavior set to NEW. Pick-to: 6.2 Task-number: QTBUG-95018 Change-Id: Ieaf82c10987dd797d86a3fd4a986a67e72de486a Reviewed-by: Kai Koehne <kai.koehne@qt.io>
20 lines
429 B
CMake
20 lines
429 B
CMake
|
|
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(test_plugins)
|
|
|
|
find_package(Qt6Network 6.0.0 REQUIRED)
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
if(NOT Qt6Network_PLUGINS)
|
|
message(SEND_ERROR "Qt6 network plugins not known!")
|
|
endif()
|
|
|
|
foreach(plugin ${Qt6Network_PLUGINS})
|
|
get_target_property(_loc ${plugin} LOCATION)
|
|
if (NOT EXISTS "${_loc}")
|
|
message(SEND_ERROR "Plugin ${plugin} not found at ${_loc}")
|
|
endif()
|
|
endforeach()
|