diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-12-12 22:06:51 +0100 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2012-12-12 22:06:51 +0100 |
commit | 34aee7f6dbbc7a119754d7d64e1f08b7e6b1540e (patch) | |
tree | 8292d78630fab662051432ddced5d88732c56b18 | |
parent | f0680b75e32645b4e0626ead645f49325f20b228 (diff) | |
download | extra-cmake-modules-34aee7f6dbbc7a119754d7d64e1f08b7e6b1540e.tar.gz extra-cmake-modules-34aee7f6dbbc7a119754d7d64e1f08b7e6b1540e.tar.bz2 |
Populate the QT_LIBRARIES variable.
-rw-r--r-- | find-modules/FindQt5Transitional.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/find-modules/FindQt5Transitional.cmake b/find-modules/FindQt5Transitional.cmake index cae84860..4c5cf542 100644 --- a/find-modules/FindQt5Transitional.cmake +++ b/find-modules/FindQt5Transitional.cmake @@ -25,20 +25,26 @@ if (Qt5Core_FOUND) OpenGL ) find_package(Qt5${_component}) + list(APPEND QT_LIBRARIES ${Qt5${_component}_LIBRARIES}) endforeach() else() foreach(_component ${Qt5Transitional_FIND_COMPONENTS}) find_package(Qt5${_component} REQUIRED) if ("${_component}" STREQUAL "WebKit") find_package(Qt5WebKitWidgets REQUIRED) + list(APPEND QT_LIBRARIES ${Qt5WebKitWidgets_LIBRARIES} ) endif() if ("${_component}" STREQUAL "Gui") find_package(Qt5Widgets REQUIRED) find_package(Qt5PrintSupport REQUIRED) find_package(Qt5Svg REQUIRED) + list(APPEND QT_LIBRARIES ${Qt5Widgets_LIBRARIES} + ${Qt5PrintSupport_LIBRARIES} + ${Qt5Svg_LIBRARIES} ) endif() if ("${_component}" STREQUAL "Core") find_package(Qt5Concurrent REQUIRED) + list(APPEND QT_LIBRARIES ${Qt5Concurrent_LIBRARIES} ) endif() endforeach() endif() |