Commit Graph

26 Commits

Author SHA1 Message Date
Chris Hennes
22b820a749 CMake: Explictly add QtOpenGLWidgets
Necessary for manually-compiled Qt 6.9 builds.
2025-07-19 17:17:09 +02:00
wmayer
4cfc77d9ee Gui: Move define HAS_QTBUG_129596 to separate header file 2025-05-30 18:04:33 +02:00
Adrián Insaurralde Avalos
ddea2d7560 remove qtxmlpatterns from cmake scripts 2024-07-15 11:29:01 -05:00
Chris Hennes
cc2883312b cMake: Remove use of Core5Compat from Qt6 2024-07-08 11:59:09 +02:00
Chris Hennes
e4ea12db27 Web: remove QtWebEngine dependency 2024-04-21 22:27:50 -05:00
mosfet80
fe1ee63f2f Clean SetupQt.cmake (#12335)
* Update SetupQt.cmake
2024-02-12 12:08:09 -06:00
David Lanzendörfer
55cddc51c0 Adding version check (#11795)
* Adding version check

* Add compat component for Qt6

* Remove too many qts

* Fix include path

---------

Co-authored-by: David Lanzendörfer <leviathan@libresilicon.com>
2024-01-05 11:08:13 -06:00
wmayer
db2ee587c0 Qt: fix failure for Qt version < 5.15 2023-11-21 23:10:03 +01:00
wmayer
7c0ba9f6d1 Qt: define Q_DISABLE_COPY_MOVE only if needed 2023-11-21 23:10:03 +01:00
Adrián Insaurralde Avalos
1afcd64ebf Rename cmake flag for unit tests to ENABLE_DEVELOPER_TESTS
To differentiate from the previously existing BUILD_TEST that controls building the Test WB
2023-08-02 00:49:29 +00:00
wmayer
8c0fd2706a Qt6: fix possible build failure
* add CMake definitions 'QT_NO_KEYWORDS' to avoid the Qt definition of the 'slots' macro that causes a conflict when including Python headers
* drop QT3_SUPPORT define
2023-07-20 08:58:56 -05:00
wmayer
cc35c6167c Gui: Create .qm out of .ts files 2023-05-07 08:52:49 +02:00
wmayer
7cdbccd3d5 Core: add CMake functions to create .qm out of .ts files 2023-05-07 08:39:55 +02:00
wmayer
602de2ace8 CMake: add Qt's WinExtra module 2023-03-13 18:14:11 +01:00
luzpaz
a134129868 Fix various trailing whitespace issues 2023-02-16 09:30:22 -05:00
wmayer
4e8ecc41b6 QtTest: [skip ci] enable Qt testing framework 2022-12-01 13:57:00 +01:00
wmayer
4a0df1f352 Qt6 port: [skip ci] set helper variable Qt6Core_MOC_EXECUTABLE pointing to the moc tool 2022-11-05 13:36:36 +01:00
wmayer
e610d884eb cmake: [skip ci] build with Qt6 requires the module QtSvgWidgets 2022-11-02 14:40:40 +01:00
Chris Hennes
1fac3fead0 cMake: Add support for compiling against Qt6 (#7647)
Removes the BUILD_QT5 flag and adds a new FREECAD_QT_VERSION option,
which can be set to either "Auto" (default), 5, or 6. Auto detects which
version of Qt is installed on the system and chooses it. If both version
are installed, Qt5 is used.

Note that this DOES NOT implement compiling against Qt6, it only adds
the necessary cMake infrastructure to begin work on the source code
changes that will be required.
2022-10-31 09:24:09 -05:00
Bernd Waibel
0e8b87bf51 Add option to build and install the designer plugin
The patch adds a cmake option BUILD_DESIGNER_PLUGIN, targeted
mainly at package maintainers to allow an easy build and installation
of the FreeCAD designer plugin.

It has been discussed in
https://forum.freecadweb.org/viewtopic.php?f=10&t=67706

Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
2022-04-05 08:08:12 +02:00
luz paz
fd3f2b0092 Fix various typos and refinements 2022-01-06 20:22:34 +01:00
Jose Luis Cercos-Pita
d2654d6ecb Prefer QtWebEngine over QtWebKit 2021-10-31 23:29:31 +01:00
Mateusz Skowroński
9ade68e9bf Fix CMake warning: qt5_make_output_file is not part of the official API, and might be removed in Qt 6. 2021-04-19 15:10:53 +02:00
Chris Hennes
c237fae4aa Drop build-system support for Qt4 and Python 2
Also increase minimum CMake, GCC, and Clang versions to match
Ubuntu 18.04 LTS. This sets our minimum supported version of the C++
standard to C++17.
2021-03-06 21:10:44 +01:00
hrobeers
c46f06de53 QtConcurrent is required for non GUI builds too 2020-09-11 16:25:13 +02:00
ezzieyguywuf
aa7419b203 Move logic out of CMakeLists.txt
This is an initial pass, simply moving the existing logic as-is. Future
PR's will attempt to refactor and improve the cmake stuff.
2019-09-26 18:54:45 +02:00