| 14 |  | endif() | 
| 15 |  | endif() | 
| 16 |  |  | 
| 17 | < | #plugins loaded by rvu at runtime | 
| 18 | < | get_filename_component(qgif_plugin ${QT_QGIF_${qt_plugin_term}_RELEASE} NAME) | 
| 19 | < | get_filename_component(qico_plugin ${QT_QICO_${qt_plugin_term}_RELEASE} NAME) | 
| 20 | < | get_filename_component(qjpeg_plugin ${QT_QJPEG_${qt_plugin_term}_RELEASE} NAME) | 
| 21 | < | get_filename_component(qmng_plugin ${QT_QMNG_${qt_plugin_term}_RELEASE} NAME) | 
| 22 | < | get_filename_component(qsvg_plugin ${QT_QSVG_${qt_plugin_term}_RELEASE} NAME) | 
| 23 | < | get_filename_component(qtiff_plugin ${QT_QTIFF_${qt_plugin_term}_RELEASE} NAME) | 
| 17 | > | if(NOT BUILD_HEADLESS) | 
| 18 | > | #plugins loaded by rvu at runtime | 
| 19 | > | get_target_property(GIF_PLUGIN Qt5::QGifPlugin LOCATION) | 
| 20 | > | get_target_property(ICO_PLUGIN Qt5::QICOPlugin LOCATION) | 
| 21 | > | get_target_property(JPEG_PLUGIN Qt5::QJpegPlugin LOCATION) | 
| 22 | > | get_target_property(TIFF_PLUGIN Qt5::QTiffPlugin LOCATION) | 
| 23 | > | get_filename_component(GIF_PLUGIN_NAME "${GIF_PLUGIN}" NAME) | 
| 24 | > | get_filename_component(ICO_PLUGIN_NAME "${ICO_PLUGIN}" NAME) | 
| 25 | > | get_filename_component(JPEG_PLUGIN_NAME "${JPEG_PLUGIN}" NAME) | 
| 26 | > | get_filename_component(TIFF_PLUGIN_NAME "${TIFF_PLUGIN}" NAME) | 
| 27 |  |  | 
| 28 | < | configure_file( | 
| 29 | < | "${CMAKE_CURRENT_SOURCE_DIR}/dependencies.cmake.in" | 
| 30 | < | "${CMAKE_CURRENT_BINARY_DIR}/dependencies.cmake" | 
| 31 | < | @ONLY | 
| 32 | < | ) | 
| 33 | < | install(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/dependencies.cmake") | 
| 28 | > | if(WIN32) | 
| 29 | > | get_target_property(QPA_PLUGIN Qt5::QWindowsIntegrationPlugin LOCATION) | 
| 30 | > | elseif(APPLE) | 
| 31 | > | get_target_property(QPA_PLUGIN Qt5::QCocoaIntegrationPlugin LOCATION) | 
| 32 | > | elseif(UNIX) | 
| 33 | > | get_target_property(QPA_PLUGIN Qt5::QXcbIntegrationPlugin LOCATION) | 
| 34 | > | endif() | 
| 35 | > | get_filename_component(QPA_PLUGIN_NAME "${QPA_PLUGIN}" NAME) | 
| 36 |  |  | 
| 37 | + | configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dependencies.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/dependencies.cmake" @ONLY) | 
| 38 | + | install(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/dependencies.cmake") | 
| 39 | + | endif() |