| 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(MNG_PLUGIN Qt5::QMngPlugin LOCATION) |
| 23 |
> |
get_target_property(TIFF_PLUGIN Qt5::QTiffPlugin LOCATION) |
| 24 |
> |
get_filename_component(GIF_PLUGIN_NAME "${GIF_PLUGIN}" NAME) |
| 25 |
> |
get_filename_component(ICO_PLUGIN_NAME "${ICO_PLUGIN}" NAME) |
| 26 |
> |
get_filename_component(JPEG_PLUGIN_NAME "${JPEG_PLUGIN}" NAME) |
| 27 |
> |
#get_filename_component(MNG_PLUGIN_NAME "${MNG_PLUGIN}" NAME) |
| 28 |
> |
get_filename_component(TIFF_PLUGIN_NAME "${TIFF_PLUGIN}" NAME) |
| 29 |
|
|
| 30 |
< |
configure_file( |
| 31 |
< |
"${CMAKE_CURRENT_SOURCE_DIR}/dependencies.cmake.in" |
| 32 |
< |
"${CMAKE_CURRENT_BINARY_DIR}/dependencies.cmake" |
| 33 |
< |
@ONLY |
| 34 |
< |
) |
| 35 |
< |
install(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/dependencies.cmake") |
| 30 |
> |
if(APPLE OR WIN32) |
| 31 |
> |
if(WIN32) |
| 32 |
> |
get_target_property(QPA_PLUGIN Qt5::QWindowsIntegrationPlugin LOCATION) |
| 33 |
> |
elseif(APPLE) |
| 34 |
> |
get_target_property(QPA_PLUGIN Qt5::QCocoaIntegrationPlugin LOCATION) |
| 35 |
> |
endif() |
| 36 |
> |
get_filename_component(QPA_PLUGIN_NAME "${QPA_PLUGIN}" NAME) |
| 37 |
> |
endif() |
| 38 |
|
|
| 39 |
+ |
configure_file( |
| 40 |
+ |
"${CMAKE_CURRENT_SOURCE_DIR}/dependencies.cmake.in" |
| 41 |
+ |
"${CMAKE_CURRENT_BINARY_DIR}/dependencies.cmake" |
| 42 |
+ |
@ONLY |
| 43 |
+ |
) |
| 44 |
+ |
install(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/dependencies.cmake") |
| 45 |
+ |
endif() |