build/FindQt5.cmake
raw| 1 | set(_components |
| 2 | Core |
| 3 | Xml |
| 4 | ) |
| 5 | |
| 6 | foreach(_component ${_components}) |
| 7 | find_package(Qt5${_component}) |
| 8 | list(APPEND QT_LIBRARIES ${Qt5${_component}_LIBRARIES}) |
| 9 | list(APPEND QT_INCLUDES ${Qt5${_component}_INCLUDE_DIRS}) |
| 10 | endforeach() |
| 11 | |
| 12 | include_directories(${QT_INCLUDES}) |
| 13 | set(QT_INSTALL_PREFIX ${_qt5Core_install_prefix}) |
| 14 | |
| 15 | #add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0) |