Commit Graph

312 Commits

Author SHA1 Message Date
luz.paz
9845c002ab Misc. source comment typo and whitespace fixes
Found via codespell
2019-06-16 20:47:07 +02:00
Tomas Pavlicek
2c634d84af Add QtXmlPatterns to CMake lists 2019-06-11 15:46:46 -04:00
Sviatoslav Sydorenko
1bc23c4454 Fix print function calls in CMakeLists for py3 2019-06-10 16:34:52 +02:00
luz.paz
2b02659010 Misc. typo and whitespace fixes
Found via `codespell`
2019-05-30 19:56:12 +02:00
wmayer
6c50fdb1d6 add option to force different build directory than source directory 2019-05-26 11:46:04 +02:00
Markus Reitboeck
8e8c6dfac0 CMake: generalize start build message
this should work for all generators on all systems
2019-05-26 11:15:24 +02:00
Markus Reitboeck
b83769e066 CMake: no need to set compiler definition _OCC64 twice 2019-05-26 11:04:52 +02:00
Markus Reitboeck
1d9df7eb10 CMake: remove dead code
BuildAll.bat was removed with commit 13408b08ad370eec547b229c1c08a3b9f77e0791
2019-05-26 11:03:25 +02:00
Markus Reitboeck
6fe886a8ea CMake: fix checking if variable is set
CMake documentation:
https://cmake.org/cmake/help/v3.0/command/if.html
2019-05-26 10:59:34 +02:00
Markus Reitboeck
a2d8c3e570 CMake: remove dead code
couldn't find DEBUG/RELEASE_MAIN_OUTPUT_PATH anywhere else
2019-05-26 10:43:26 +02:00
Markus Reitboeck
28456fc312 CMake: cmake module path is assumed to be a list
append to it to allow setting it from outside
2019-05-26 10:41:20 +02:00
Markus Reitboeck
106ebf4f64 CMake: setting CCache before calling the project command
as the comment and https://crascit.com/2016/04/09/using-ccache-with-cmake/
suggest, setting CCache should be done before project command,
because then CMake checks if the compiler can be invoked through CCache
2019-05-26 10:38:54 +02:00
Markus Reitboeck
3f8b6fc465 CMake: setting CMake policies should be done before anything else
see note in project command documentation
https://cmake.org/cmake/help/v3.3/command/project.html
2019-05-26 10:37:04 +02:00
Markus Reitboeck
b662fd4f81 CMake: remove _trunk from project name
trunk is a term from version control systems and has nothing to do with
CMake. Now the variable PROJECT_NAME defined by CMake and PACKAGE_NAME
are the same, therefore replaced PACKAGE_NAME with PROJECT_NAME
2019-05-26 10:32:05 +02:00
wmayer
9be45a7981 harmonize whitespace and case-sensitivity 2019-05-25 18:12:30 +02:00
wmayer
9ce1bfca6f fix and improve handling of BUILD_QT5 option 2019-05-25 15:47:02 +02:00
Russell Johnson
f6b18529b7 Windows: Add libpack dependency install support
Add options to copy dependencies from libpack to build directories
Add option to create install commands for INSTALL project in FreeCAD solution
2019-05-25 15:14:33 +02:00
lo
1922c84ca0 cmake: add option to disable linking of python extension modules to python-libraries 2019-05-24 14:37:33 +02:00
MA-DEVELOP\apeltauer
9f6b6d7f36 make Qt5WinExtras package optional 2019-05-10 18:22:32 +02:00
MA-DEVELOP\apeltauer
ca4ca78bd2 make sure QWinTaskbarProgress and QWinTaskbarButton is only used in windows compiles 2019-05-10 18:22:07 +02:00
MA-DEVELOP\apeltauer
5483455d30 add QWinTasbarProgress to windows build 2019-05-10 18:21:55 +02:00
lorenz
49716dcaa5 don't build ship and plot by default 2019-05-06 13:41:24 +02:00
luz.paz
b7b433e461 Misc. typo and whitespace fixes
Found via `codespell`
2019-04-30 10:15:59 -03:00
Bernd Hahnebach
3f2562669f CMake: add new line before summary report 2019-04-29 12:13:00 -03:00
wmayer
0521860740 rename BUILD_uSE_PCH to FREECAD_USE_PCH to be consistent with other build options 2019-04-15 13:31:31 +02:00
wmayer
0c4d9f8b1b rename MP_COMPILE_FLAG to FREECAD_USE_MP_COMPILE_FLAG to be consistent with other build options 2019-04-15 13:20:47 +02:00
MA-DEVELOP\apeltauer
569410fff3 make the /mp compile flag optional 2019-04-14 19:36:28 +02:00
MA-LAPTOP\apeltauer
e12d272d0a Build with Multiple Processes, decreases the build time 2019-04-08 13:21:41 +02:00
wmayer
c2e64c3028 use a combo box to choose between Qt's webkit and WebEngine modules 2019-04-04 12:55:56 +02:00
Markus Lampert
be3651a5f6 Make QtWebKit the default package to look for and add build switch to force QtWebEngine. 2019-04-04 12:15:29 +02:00
wmayer
c0aac1e038 use STATUS in message command as otherwise in the GUI of cmake output will be in red and thus might be confusing 2019-03-31 10:29:00 +02:00
Stian Skjelstad
c18982a196 Make a report after you run cmake to show the different status of the libraries that might be used. This should make it easier for new persons to build FreeCAD. Some of the detection routines might output error messages doing different ways if detection, so finding the real error that causes cmake to fail can be hard. Can also be usefull for future bug-reports. 2019-03-31 10:23:59 +02:00
Stian Skjelstad
58db49007c Detect QT5 by using REQUIRED flag instead of checking if QT5Core is present at the end. If Qt5WebKitWidgets for instance fails, we end up with build-success, but runtime-loading errors due to unresolved symbols and views not working. 2019-03-31 10:21:29 +02:00
Stian Skjelstad
799bcd2681 Use CMAKE_CXX_STANDARD instead of adding details to CMAKE_CXX_FLAGS.
Also add C++20 to the list.

(We might consider removing this whole thing, and guide users to use -DCMAKE_CXX_STANDARD instead)
2019-03-31 10:11:55 +02:00
MA-DEVELOP\apeltauer
2a390600c9 enable qt5 support if qt5core.lib is found 2019-03-30 15:51:10 +01:00
Fredrik Johansson
0afc292487 Support QWebEngine BrowserView, QWebkit still suppported through cmake option 2019-03-30 14:10:45 +01:00
wmayer
25b4195e69 set 0.19 development version 2019-03-14 23:10:50 +01:00
looooo
31156717b0 add cmake_minimum_required to top of CMakeLists.txt and increase minimum Version 2019-03-07 11:10:42 +01:00
triplus
8a44522550 Extend PySide2 wrapper to support QtUiTools
Reports started to emerge as ATM importing QtUiTools doesn't work on Qt5 builds:

https://forum.freecadweb.org/viewtopic.php?f=22&t=32947
https://forum.freecadweb.org/viewtopic.php?f=37&t=33629
2019-01-25 10:37:21 +01:00
Stian Skjelstad
9ccfefb112 Improve messages when trying to detect HDF5 2018-12-24 11:01:39 -02:00
Stian Skjelstad
e0106b946f On my Ubuntu setup, compilation failes when using med.h, since
libmedc is built with openMPI, while freeCAD selects hdf5-serial.

libmed declares functions prototypes which has MPI parameters if
built for openMPI, causing compilation errors. Doing some online
searches reveals that some users manually changes the include-paths
to hdf5-openmpi if this error happens.

This patch tries to autodetect this situation.
2018-12-24 11:01:39 -02:00
Fabio Rossi
be90145e90 Avoid overwriting of LDFLAGS for shared libs 2018-12-19 21:54:02 +01:00
lorenz
c075247036 cmake: revert changes for smesh
smesh relevant part of this commit:
6b69a86600
2018-12-01 20:17:37 +01:00
lorenz
87056ca60c cmake-changes for conda 2018-12-01 14:52:15 -03:00
wmayer
0c68abb64c Improve automatic search for matching Shiboken2 config file 2018-11-28 23:05:13 +01:00
Mateusz Skowroński
11da78f582 Explicitly set CMake's CMP0072 to OLD. 2018-11-20 09:44:11 +01:00
luz.paz
c7785267a7 Misc. typos and whitespace
Found via `codespell -q 3 --skip="*.po,*.ts,./.git,./src/3rdParty,./src/CXX,./src/zipios++,./src/Mod/Assembly/App/opendcm,./ChangeLog.txt" -I ../fc-word-whitelist.txt` and `grep`. Excess whitespace auto-removed by Atom editor.
2018-11-03 16:13:06 -03:00
wmayer
36271b4052 move from deprecated boost.signals to boost.signals2 library 2018-10-30 19:09:03 +01:00
wmayer
d88860a4c1 rework error handling mechanism 2018-10-24 19:38:43 +02:00
wmayer
6e0a90c8f2 enable FREECAD_RELEASE_PDB by default, cleanup cmake file, improve whiespaces 2018-10-15 20:11:58 +02:00