rlancaste / stellarsolver

GNU General Public License v3.0
94 stars 47 forks source link

Support for both Qt5 and Qt6 #143

Closed sterne-jaeger closed 5 months ago

sterne-jaeger commented 6 months ago

The CMakeLists.txt obtains a flag whether Qt5 or Qt6 is used. This makes it possible using it in both a Qt5 and Qt6 environment.

rlancaste commented 6 months ago

I see, I guess it is possible to have both qt5 and qt6 installed simultaneously?

sterne-jaeger commented 6 months ago

I haven't tested it having both versions installed simultaneously. But without this change, your branch supportingQT6 does not compile with Qt5.

With this change, you need to set a cmake flag (at least for Qt6, since Qt5 is the default):

cmake -DUSE_QT5=On ...

or

cmake -DUSE_QT5=Off ...