aboutsummaryrefslogtreecommitdiff
path: root/modules/FindQt5Transitional.cmake
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2012-05-08 21:42:59 +0200
committerAlex Neundorf <neundorf@kde.org>2012-05-08 21:50:51 +0200
commit97b0f178e38317f528ee92bceb3fdc0c3c5fc291 (patch)
tree06d90e00628a2610548f261fc9c83818f0539cfc /modules/FindQt5Transitional.cmake
parent13ca57013d22cc0495dea909a96fd8322e266a38 (diff)
downloadextra-cmake-modules-97b0f178e38317f528ee92bceb3fdc0c3c5fc291.tar.gz
extra-cmake-modules-97b0f178e38317f528ee92bceb3fdc0c3c5fc291.tar.bz2
-move FindQt5Transitional to the find-modules/ directory
Alex
Diffstat (limited to 'modules/FindQt5Transitional.cmake')
-rw-r--r--modules/FindQt5Transitional.cmake62
1 files changed, 0 insertions, 62 deletions
diff --git a/modules/FindQt5Transitional.cmake b/modules/FindQt5Transitional.cmake
deleted file mode 100644
index be544ea6..00000000
--- a/modules/FindQt5Transitional.cmake
+++ /dev/null
@@ -1,62 +0,0 @@
-
-find_package(Qt5Core QUIET)
-
-if (Qt5Core_FOUND)
- if (NOT Qt5Transitional_FIND_COMPONENTS)
- foreach(_component
- Core
- Gui
- DBus
- Designer
- Script
- ScriptTools
- Network
- Test
- Xml
- Svg
- Sql
- Widgets
- PrintSupport
- Concurrent
- UiTools
- Quick1
- WebKit
- )
- find_package(Qt5${_component})
- endforeach()
- else()
- foreach(_component ${Qt5Transitional_FIND_COMPONENTS})
- if ("${_component}" STREQUAL "Declarative")
- set(_component Quick1)
- endif()
- find_package(Qt5${_component} REQUIRED)
- if ("${_component}" STREQUAL "Gui")
- find_package(Qt5Widgets REQUIRED)
- find_package(Qt5PrintSupport REQUIRED)
- find_package(Qt5Svg REQUIRED)
- endif()
- if ("${_component}" STREQUAL "Core")
- find_package(Qt5Concurrent REQUIRED)
- endif()
- endforeach()
- endif()
-
- set(Qt5Transitional_FOUND TRUE)
- set(QT5_BUILD TRUE)
- include("${CMAKE_CURRENT_LIST_DIR}/ECMQt4To5Porting.cmake") # TODO: Port away from this.
- include_directories(${QT_INCLUDES}) # TODO: Port away from this.
-else()
- foreach(_component ${Qt5Transitional_FIND_COMPONENTS})
- if("${_component}" STREQUAL "Widgets") # new in Qt5
- set(_component Gui)
- elseif("${_component}" STREQUAL "Concurrent") # new in Qt5
- set(_component Core)
- endif()
- list(APPEND _components Qt${_component})
- endforeach()
- find_package(Qt4 REQUIRED ${_components})
- include_directories(${QT_INCLUDES})
- if(QT4_FOUND)
- set(Qt5Transitional_FOUND TRUE)
- endif()
-endif()