|
| 1 | +## |
| 2 | +# |
| 3 | +# This file is part of OpenFLUID software |
| 4 | +# Copyright(c) 2007, INRA - Montpellier SupAgro |
| 5 | +# |
| 6 | +# |
| 7 | +# == GNU General Public License Usage == |
| 8 | +# |
| 9 | +# OpenFLUID is free software: you can redistribute it and/or modify |
| 10 | +# it under the terms of the GNU General Public License as published by |
| 11 | +# the Free Software Foundation, either version 3 of the License, or |
| 12 | +# (at your option) any later version. |
| 13 | +# |
| 14 | +# OpenFLUID is distributed in the hope that it will be useful, |
| 15 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | +# GNU General Public License for more details. |
| 18 | +# |
| 19 | +# You should have received a copy of the GNU General Public License |
| 20 | +# along with OpenFLUID. If not, see <http://www.gnu.org/licenses/>. |
| 21 | +# |
| 22 | +# |
| 23 | +# == Other Usage == |
| 24 | +# |
| 25 | +# Other Usage means a use of OpenFLUID that is inconsistent with the GPL |
| 26 | +# license, and requires a written agreement between You and INRA. |
| 27 | +# Licensees for Other Usage of OpenFLUID may use this file in accordance |
| 28 | +# with the terms contained in the written agreement between You and INRA. |
| 29 | +# |
| 30 | +## |
| 31 | + |
| 32 | +IF (QT_VERSION_MAJOR LESS 6) |
| 33 | + SET(QT_INCLUDES ${Qt5Core_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS} |
| 34 | + ${Qt5Network_INCLUDE_DIRS} ${Qt5Xml_INCLUDE_DIRS} ${Qt5Svg_INCLUDE_DIRS}) |
| 35 | + |
| 36 | + SET(QT_QTCORE_LIBRARIES Qt5::Core) |
| 37 | + SET(QT_QTWIDGETS_LIBRARIES Qt5::Widgets) |
| 38 | + SET(QT_QTNETWORK_LIBRARIES Qt5::Network) |
| 39 | + SET(QT_QTXML_LIBRARIES Qt5::Xml) |
| 40 | + SET(QT_QTSVG_LIBRARIES Qt5::Svg) |
| 41 | + |
| 42 | + SET(QT_QTCORE_LIBRARY Qt5::Core) |
| 43 | + SET(QT_QTWIDGETS_LIBRARY Qt5::Widgets) |
| 44 | + SET(QT_QTNETWORK_LIBRARY Qt5::Network) |
| 45 | + SET(QT_QTXML_LIBRARY Qt5::Xml) |
| 46 | + SET(QT_QTSVG_LIBRARY Qt5::Svg) |
| 47 | +ELSE() |
| 48 | + SET(QT_INCLUDES ${Qt6Core_INCLUDE_DIRS} ${Qt6Widgets_INCLUDE_DIRS} |
| 49 | + ${Qt6Network_INCLUDE_DIRS} ${Qt6Xml_INCLUDE_DIRS} ${Qt6Svg_INCLUDE_DIRS}) |
| 50 | + |
| 51 | + SET(QT_QTCORE_LIBRARIES Qt6::Core) |
| 52 | + SET(QT_QTWIDGETS_LIBRARIES Qt6::Widgets) |
| 53 | + SET(QT_QTGUI_LIBRARIES Qt6::Gui) |
| 54 | + SET(QT_QTNETWORK_LIBRARIES Qt6::Network) |
| 55 | + SET(QT_QTXML_LIBRARIES Qt6::Xml) |
| 56 | + SET(QT_QTSVG_LIBRARIES Qt6::Svg) |
| 57 | + |
| 58 | + SET(QT_QTCORE_LIBRARY Qt6::Core) |
| 59 | + SET(QT_QTWIDGETS_LIBRARY Qt6::Widgets) |
| 60 | + SET(QT_QTGUI_LIBRARY Qt6::Gui) |
| 61 | + SET(QT_QTNETWORK_LIBRARY Qt6::Network) |
| 62 | + SET(QT_QTXML_LIBRARY Qt6::Xml) |
| 63 | + SET(QT_QTSVG_LIBRARY Qt6::Svg) |
| 64 | +ENDIF() |
0 commit comments