Warning, /frameworks/kdelibs4support/cmake/modules/FindQt5Transitional.cmake is written in an unsupported language. File is not indexed.

0001 
0002 find_package(Qt5Core QUIET)
0003 
0004 if (Qt5Core_FOUND)
0005   set(_allComponents
0006       Core
0007       Gui
0008       DBus
0009       Designer
0010       Declarative
0011       Script
0012       ScriptTools
0013       Network
0014       Test
0015       Xml
0016       Svg
0017       Sql
0018       Widgets
0019       PrintSupport
0020       Concurrent
0021       UiTools
0022       WebKit
0023       WebKitWidgets
0024       OpenGL
0025       X11Extras
0026       Qml
0027       Quick
0028     )
0029   if (NOT Qt5Transitional_FIND_COMPONENTS)
0030     foreach(_component ${_allComponents})
0031       find_package(Qt5${_component})
0032 
0033       list(APPEND QT_LIBRARIES ${Qt5${_component}_LIBRARIES})
0034     endforeach()
0035   else()
0036     set(_components ${Qt5Transitional_FIND_COMPONENTS})
0037     foreach(_component ${Qt5Transitional_FIND_COMPONENTS})
0038       find_package(Qt5${_component} REQUIRED)
0039       if ("${_component}" STREQUAL "WebKit")
0040         find_package(Qt5WebKitWidgets REQUIRED)
0041         list(APPEND QT_LIBRARIES ${Qt5WebKitWidgets_LIBRARIES} )
0042       endif()
0043       if ("${_component}" STREQUAL "Gui")
0044         find_package(Qt5Widgets REQUIRED)
0045         find_package(Qt5PrintSupport REQUIRED)
0046         find_package(Qt5Svg REQUIRED)
0047         list(APPEND QT_LIBRARIES ${Qt5Widgets_LIBRARIES}
0048                                  ${Qt5PrintSupport_LIBRARIES}
0049                                  ${Qt5Svg_LIBRARIES} )
0050       endif()
0051       if ("${_component}" STREQUAL "Core")
0052         find_package(Qt5Concurrent REQUIRED)
0053         list(APPEND QT_LIBRARIES ${Qt5Concurrent_LIBRARIES} )
0054       endif()
0055     endforeach()
0056   endif()
0057 
0058   set(Qt5Transitional_FOUND TRUE)
0059   set(QT5_BUILD TRUE)
0060 
0061   include("${CMAKE_CURRENT_LIST_DIR}/ECMQt4To5Porting.cmake") # TODO: Port away from this.
0062 
0063 else()
0064   foreach(_component ${Qt5Transitional_FIND_COMPONENTS})
0065     if("${_component}" STREQUAL "Widgets")  # new in Qt5
0066       set(_component Gui)
0067     elseif("${_component}" STREQUAL "Concurrent")   # new in Qt5
0068       set(_component Core)
0069     endif()
0070     list(APPEND _components Qt${_component})
0071   endforeach()
0072   find_package(Qt4 ${QT_MIN_VERSION} REQUIRED ${_components})
0073 
0074   if(QT4_FOUND)
0075     set(Qt5Transitional_FOUND TRUE)
0076   endif()
0077 endif()