18 Commits

Author SHA1 Message Date
Joao Matos
aace8f7bee CMake: Modernize build files using outdated Python variables. 2025-02-16 10:21:26 -06:00
berniev
3496858451 Still more improvements to Report Summary
Final Report doesn't distinguish system settings

Added ability to have 'sections' to group stuff
Added value function to display options as ON / OFF / value / -undefined-
Added sections System, Config, Libraries
Added a bunch of data to System and Config. Moved some out of Libraries as appropriate.
2023-02-10 20:29:16 -07:00
Chris Hennes
ffb87b5f6e cMake: Correct PySideTools paths on Windows 2023-01-30 10:36:33 -07:00
berniev
ba62ec0e24 remove unused code in find pyside 2022-11-20 13:43:10 +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
Stefan Brüns
96045f3e58 [CMake] Abort configuration when required uic/rcc is not found 2022-02-26 14:13:46 +01:00
StefanBruens
dedf9e0386 [CMake] Use imported executable targets for finding Qt uic/rcc
Commit ad7077c03daf ("Update FindPySide2Tools.cmake") removed the
versioned names of uic/rcc, which are at least used on openSUSE
and Fedora.

Instead of determining the path of uic/rcc manually, just use
the imported executable targets. rcc comes from QtCore, while
uic comes from QtWidgets.

Fixes #6445.
2022-02-26 14:13:46 +01:00
mosfet80
20f31f409f Update FindPySide2Tools.cmake 2022-02-14 14:44:51 +01:00
mosfet80
6434fa9114 Update FindPySide2Tools.cmake
fix else option when qt >=5.14
2022-02-14 14:44:51 +01:00
luz paz
17ebdef0b1 CMake: correct non-POSIX friendly 'sed-i' arg in FindPySide2Tools.cmake
resolves #0004588  
ticket: https://tracker.freecadweb.org/view.php?id=4588  
Patch provided by 'garya'  
Tweaked comment to reflect the patch change. [skip ci]
2021-03-08 14:19:44 +01:00
Jeffrey Zampieron
27f1c89100 Make sure we can find pyside on osx 2020-09-03 12:06:59 +02:00
Warren Falk
99f80fabe4 [CMake] Find old pyside2 uic and rcc when they are named pyuic5 and pyrcc5
Found that on ubuntu 20.04 where QT is still at 5.12, these are called pyuic5 and pyrcc5 now and cmake will not find these and then the build fails without this change
2020-07-03 14:41:11 +02:00
Adrian Schröter
68a3729422 Find uic and rcc on openSUSE
openSUSE (and most likely other distributions) is renaming uic and rcc
to avoid file conflicts with Qt4.

Prefer these if they exist
2020-01-27 10:09:15 +01:00
howetuft
1bbfc71f79 Change IF(...LESS...) into IF(...VERSION_LESS...) 2020-01-08 15:19:27 +01:00
howetuft
e2c4465e2b [Cmake] Update FindPySide2Tools for PySide2 5.14 - issue #4229
Since PySide2 5.14, 'pyside2-rcc' and 'pyside2-uic' have been renamed into plain 'rcc' and 'uic'.
This leads FindPySide2Tools.cmake to no longer find rcc/uic, as reported in bug #4229 (https://www.freecadweb.org/tracker/view.php?id=4229) and prevents compilation.
FindPySide2Tools has been updated accordingly.
2020-01-08 15:19:27 +01:00
Peter Lama
d7a262af21 Fix build error on MacOS due to sed command usage
Non GNU sed on macOS expects suffix after -i option (can be empty str).
However, removing the comments from the pyside generated files is not a necessary
operation (presumably done to avoid a diff when no code changed), so simply skip the operation on macOS
2018-08-15 09:13:03 +02:00
Ryan Pavlik
9ee259a41a Apply equivalent changes to FindPySide2Tools as FindPySideTools.
These are largely matching files, potential to de-duplicate them, but this
just ports the changes over for now.
2018-08-11 17:39:15 +02:00
Mateusz Skowroński
9d69d4a51a Use PySide2 tools for Qt5. 2016-12-24 15:33:15 +01:00