Debian Codegraph @

src/Gui/CMakeLists.txt

raw
1 add_library(FreeCADGui SHARED)
2
3 if ( EXISTS "${CMAKE_SOURCE_DIR}/src/3rdParty/GSL/include" )
4 include_directories( ${CMAKE_SOURCE_DIR}/src/3rdParty/GSL/include )
5 else()
6 find_package(Microsoft.GSL)
7 if( Microsoft.GSL_FOUND )
8 message( STATUS "Found Microsoft.GSL: version ${Microsoft.GSL_VERSION}" )
9 else()
10 message( SEND_ERROR "The C++ Guidelines Support Library (GSL) submodule is not available. Please run git submodule update --init" )
11 endif()
12 endif()
13
14 add_subdirectory(Stylesheets)
15 add_subdirectory(PreferencePacks)
16 add_subdirectory(PreferencePackTemplates)
17
18 if(BUILD_WITH_CONDA)
19 add_definitions(-DFC_CONDA)
20 endif(BUILD_WITH_CONDA)
21
22 if(FC_FLATPAK)
23 add_definitions(-DFC_FLATPAK)
24 endif(FC_FLATPAK)
25
26 if(WIN32)
27 add_definitions(-DFCGui -DQSINT_MAKEDLL -DOVR_OS_WIN32 -DQUARTER_INTERNAL -DQUARTER_MAKE_DLL -DCOIN_DLL)
28 endif(WIN32)
29
30 IF(CMAKE_BUILD_TYPE)
31 add_definitions(-DCMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE}")
32 ENDIF(CMAKE_BUILD_TYPE)
33
34 if (FREECAD_USE_3DCONNEXION_LEGACY AND (MSVC OR APPLE))
35 add_definitions(-D_USE_3DCONNEXION_SDK)
36 if(APPLE)
37 set(3DCONNEXION_LINKFLAGS "-F/Library/Frameworks -weak_framework 3DconnexionClient")
38 list(APPEND 3DCONNEXION_INCLUDE_DIR ${3DCONNEXIONCLIENT_FRAMEWORK}/Headers
39 ${3DCONNEXIONCLIENT_FRAMEWORK}/Headers/3DconnexionClient )
40 endif(APPLE)
41 endif(FREECAD_USE_3DCONNEXION_LEGACY AND (MSVC OR APPLE))
42
43 if(FREECAD_USE_3DCONNEXION_NAVLIB AND (MSVC OR APPLE))
44 add_definitions(-DUSE_3DCONNEXION_NAVLIB)
45 if(APPLE)
46 add_definitions(-D__APPLE__)
47 endif(APPLE)
48 list(APPEND 3DCONNEXION_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/src/3rdParty/3Dconnexion/inc)
49 endif(FREECAD_USE_3DCONNEXION_NAVLIB AND (MSVC OR APPLE))
50
51 if (BUILD_VR)
52 add_definitions(-DBUILD_VR )
53 endif(BUILD_VR)
54
55 if (BUILD_ADDONMGR)
56 add_definitions(-DBUILD_ADDONMGR )
57 endif(BUILD_ADDONMGR)
58
59 if (BUILD_TRACY_FRAME_PROFILER)
60 add_definitions(-DBUILD_TRACY_FRAME_PROFILER)
61 endif()
62
63 target_include_directories(
64 FreeCADGui
65 PUBLIC
66 ${CMAKE_BINARY_DIR}
67 ${CMAKE_CURRENT_SOURCE_DIR}
68 ${CMAKE_CURRENT_SOURCE_DIR}/Quarter
69 ${CMAKE_CURRENT_SOURCE_DIR}/PreferencePages
70 ${CMAKE_CURRENT_SOURCE_DIR}/Selection
71 ${CMAKE_CURRENT_SOURCE_DIR}/StyleParameters
72 ${CMAKE_CURRENT_BINARY_DIR}
73 ${CMAKE_CURRENT_SOURCE_DIR}/..
74 ${CMAKE_CURRENT_BINARY_DIR}/..
75 ${CMAKE_CURRENT_BINARY_DIR}/Language
76 ${CMAKE_CURRENT_BINARY_DIR}/propertyeditor
77 ${CMAKE_CURRENT_BINARY_DIR}/TaskView
78 ${CMAKE_CURRENT_BINARY_DIR}/Quarter
79 ${CMAKE_CURRENT_BINARY_DIR}/DAGView
80 )
81
82 target_include_directories(
83 FreeCADGui
84 SYSTEM
85 PRIVATE
86 ${EIGEN3_INCLUDE_DIR}
87 ${3DCONNEXION_INCLUDE_DIR}
88 )
89
90 if(MSVC)
91 target_include_directories(
92 FreeCADGui
93 SYSTEM
94 PUBLIC
95 ${CMAKE_SOURCE_DIR}/src/3rdParty/OpenGL/api
96 )
97 endif(MSVC)
98
99 if(MSVC)
100 set(FreeCADGui_LIBS
101 FreeCADApp
102 ${OPENGL_gl_LIBRARY}
103 )
104
105 if(FREECAD_USE_3DCONNEXION_LEGACY)
106 list(APPEND FreeCADGui_LIBS
107 hid
108 )
109 endif()
110
111 else(MSVC)
112 set(FreeCADGui_LIBS
113 FreeCADApp
114 ${Boost_LIBRARIES}
115 ${OPENGL_gl_LIBRARY}
116 ${3DCONNEXION_LINKFLAGS}
117 )
118 endif(MSVC)
119
120 if(BUILD_TRACY_FRAME_PROFILER)
121 list(APPEND FreeCADGui_LIBS TracyClient)
122 endif()
123
124 if (TARGET Coin::Coin)
125 list(APPEND FreeCADGui_LIBS Coin::Coin)
126 else()
127 target_include_directories(FreeCADGui SYSTEM PUBLIC ${COIN3D_INCLUDE_DIRS})
128 target_link_directories(FreeCADGui PUBLIC ${COIN3D_LIB_DIRS})
129 list(APPEND FreeCADGui_LIBS ${COIN3D_LIBRARIES})
130 endif()
131
132 if (WIN32)
133 # In order to make menus and tooltips usable in fullscreen under Windows we need to call setHasBorderInFullScreen(),
134 # defined in Qt's private Gui code. See issue #7563, and the calls to QNativeInterface::Private in MainWindow.cpp
135 if(FREECAD_QT_MAJOR_VERSION EQUAL 6)
136 if(Qt6_VERSION VERSION_GREATER_EQUAL "6.10.0")
137 find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)
138 endif()
139 list(APPEND FreeCADGui_LIBS
140 Qt6::GuiPrivate
141 )
142 endif()
143 endif()
144
145 target_include_directories(
146 FreeCADGui
147 SYSTEM
148 PUBLIC
149 ${QtCore_INCLUDE_DIRS}
150 ${QtWidgets_INCLUDE_DIRS}
151 ${QtOpenGL_INCLUDE_DIRS}
152 ${QtOpenGLWidgets_INCLUDE_DIRS}
153 ${QtPrintSupport_INCLUDE_DIRS}
154 ${QtSvg_INCLUDE_DIRS}
155 ${QtSvgWidgets_INCLUDE_DIRS}
156 ${QtNetwork_INCLUDE_DIRS}
157 ${QtUiTools_INCLUDE_DIRS}
158 ${QtXml_INCLUDE_DIRS}
159 ${YAML_CPP_INCLUDE_DIRS}
160 )
161
162 list(APPEND FreeCADGui_LIBS
163 ${QtCore_LIBRARIES}
164 ${QtWidgets_LIBRARIES}
165 ${QtOpenGL_LIBRARIES}
166 ${QtOpenGLWidgets_LIBRARIES}
167 ${QtPrintSupport_LIBRARIES}
168 ${QtSvg_LIBRARIES}
169 ${QtSvgWidgets_LIBRARIES}
170 ${QtNetwork_LIBRARIES}
171 ${QtUiTools_LIBRARIES}
172 )
173
174 link_directories(${YAML_CPP_LIBRARY_DIR})
175
176 if(yaml-cpp_VERSION VERSION_LESS 0.8.0)
177 list(APPEND FreeCADGui_LIBS
178 ${YAML_CPP_LIBRARIES}
179 )
180 else()
181 list(APPEND FreeCADGui_LIBS
182 yaml-cpp::yaml-cpp
183 )
184 endif()
185
186 if(${Qt5WinExtras_FOUND})
187 target_include_directories(
188 FreeCADGui
189 SYSTEM
190 PUBLIC
191 ${Qt5WinExtras_INCLUDE_DIRS}
192 )
193 list(APPEND FreeCADGui_LIBS
194 ${Qt5WinExtras_LIBRARIES}
195 )
196 endif()
197
198 IF(SPNAV_FOUND AND FREECAD_USE_3DCONNEXION_LEGACY)
199 add_definitions(-D_USE_3DCONNEXION_SDK)
200 if(SPNAV_USE_X11)
201 add_definitions(-DSPNAV_USE_X11)
202 if (FREECAD_QT_MAJOR_VERSION EQUAL 5 AND UNIX AND NOT APPLE)
203 find_package(Qt5X11Extras REQUIRED)
204 target_include_directories(
205 FreeCADGui
206 SYSTEM
207 PUBLIC
208 ${Qt5X11Extras_INCLUDE_DIRS}
209 )
210 list(APPEND FreeCADGui_LIBS ${Qt5X11Extras_LIBRARIES})
211 # Note that Qt6 has removed the QtX11Extras files
212 endif()
213 find_package(X11 QUIET)
214 if (X11_FOUND)
215 list(APPEND FreeCADGui_LIBS
216 ${X11_X11_LIB}
217 )
218 endif(X11_FOUND)
219 SET(FreeCADGui_SDK_SRCS
220 3Dconnexion/GuiAbstractNativeEvent.cpp
221 3Dconnexion/GuiNativeEventLinuxX11.cpp
222 )
223 SET(FreeCADGui_SDK_MOC_HDRS
224 3Dconnexion/GuiAbstractNativeEvent.h
225 3Dconnexion/GuiNativeEventLinuxX11.h
226 )
227 else(SPNAV_USE_X11)
228 SET(FreeCADGui_SDK_SRCS
229 3Dconnexion/GuiAbstractNativeEvent.cpp
230 3Dconnexion/GuiNativeEventLinux.cpp
231 )
232 SET(FreeCADGui_SDK_MOC_HDRS
233 3Dconnexion/GuiAbstractNativeEvent.h
234 3Dconnexion/GuiNativeEventLinux.h
235 )
236 endif(SPNAV_USE_X11)
237 SOURCE_GROUP("3D connexion SDK" FILES ${FreeCADGui_SDK_SRCS})
238 list(APPEND FreeCADGui_connexion_SRCS
239 ${FreeCADGui_SDK_SRCS}
240 )
241 list(APPEND FreeCADGui_connexion_HDRS
242 ${FreeCADGui_SDK_MOC_HDRS}
243 )
244
245 add_definitions(-DSPNAV_FOUND)
246 target_include_directories(
247 FreeCADGui
248 SYSTEM
249 PUBLIC
250 ${SPNAV_INCLUDE_DIR}
251 )
252 list(APPEND FreeCADGui_LIBS
253 ${SPNAV_LIBRARIES}
254 )
255 ENDIF(SPNAV_FOUND AND FREECAD_USE_3DCONNEXION_LEGACY)
256
257 IF(OCULUS_FOUND)
258 add_definitions(-DOCULUS_FOUND)
259 target_include_directories(
260 FreeCADGui
261 SYSTEM
262 PUBLIC
263 ${OCULUS_INCLUDE_DIRS}
264 )
265 list(APPEND FreeCADGui_LIBS
266 ${OCULUS_LIBRARIES}
267 )
268 ENDIF(OCULUS_FOUND)
269
270 if(FREECAD_USE_SHIBOKEN)
271 add_definitions(-DHAVE_SHIBOKEN${PYSIDE_MAJOR_VERSION})
272 target_include_directories(
273 FreeCADGui
274 SYSTEM
275 PUBLIC
276 ${SHIBOKEN_INCLUDE_DIR}
277 )
278 if (SHIBOKEN_LIBRARY)
279 list(APPEND FreeCADGui_LIBS
280 ${SHIBOKEN_LIBRARY}
281 )
282 else (SHIBOKEN_LIBRARY)
283 if (TARGET Shiboken2::libshiboken)
284 list(APPEND FreeCADGui_LIBS
285 Shiboken2::libshiboken
286 )
287 elseif (TARGET Shiboken6::libshiboken)
288 list(APPEND FreeCADGui_LIBS
289 Shiboken6::libshiboken
290 )
291 endif (TARGET Shiboken2::libshiboken)
292 endif (SHIBOKEN_LIBRARY)
293 endif(FREECAD_USE_SHIBOKEN)
294
295 if(FREECAD_USE_PYSIDE)
296 target_include_directories(
297 FreeCADGui
298 SYSTEM
299 PUBLIC
300 ${PYSIDE_INCLUDE_DIR}
301 ${PYSIDE_INCLUDE_DIR}/QtCore
302 ${PYSIDE_INCLUDE_DIR}/QtGui
303 ${PYSIDE_INCLUDE_DIR}/QtWidgets
304 )
305 if (PYSIDE_LIBRARY)
306 list(APPEND FreeCADGui_LIBS
307 ${PYSIDE_LIBRARY}
308 )
309 else (PYSIDE_LIBRARY)
310 if (TARGET PySide2::pyside2)
311 list(APPEND FreeCADGui_LIBS
312 PySide2::pyside2
313 )
314 elseif (TARGET PySide6::pyside6)
315 list(APPEND FreeCADGui_LIBS
316 PySide6::pyside6
317 )
318 endif ()
319 endif (PYSIDE_LIBRARY)
320
321 add_definitions(-DHAVE_PYSIDE${PYSIDE_MAJOR_VERSION})
322 endif(FREECAD_USE_PYSIDE)
323
324 generate_from_py(Document)
325 generate_from_py(PythonWorkbench)
326 generate_from_py(ViewProvider)
327 generate_from_py(ViewProviderDocumentObject)
328 generate_from_py(ViewProviderGeometryObject)
329 generate_from_py(ViewProviderExtension)
330 generate_from_py(Workbench)
331 generate_from_py(Selection/SelectionObject)
332 generate_from_py(LinkView)
333 generate_from_py(ViewProviderLink)
334 generate_from_py(AxisOrigin)
335 generate_from_py(Command)
336 generate_from_py(Navigation/NavigationStyle)
337
338 generate_embed_from_py(FreeCADGuiInit GuiInitScript.h)
339
340 # The Pyi files
341 SET(FreeCADGui_Pyi_SRCS
342 ViewProviderDocumentObject.pyi
343 ViewProviderGeometryObject.pyi
344 ViewProvider.pyi
345 ViewProviderExtension.pyi
346 PythonWorkbench.pyi
347 Workbench.pyi
348 Selection/SelectionObject.pyi
349 Document.pyi
350 LinkView.pyi
351 ViewProviderLink.pyi
352 AxisOrigin.pyi
353 Command.pyi
354 )
355 SOURCE_GROUP("Pyi" FILES ${FreeCADGui_Pyi_SRCS})
356
357 # The 3D Connexion SDK files
358 if(FREECAD_USE_3DCONNEXION_LEGACY AND MSVC)
359 SET(FreeCADGui_SDK_SRCS
360 3Dconnexion/I3dMouseParams.h
361 3Dconnexion/MouseParameters.cpp
362 3Dconnexion/MouseParameters.h
363 3Dconnexion/GuiAbstractNativeEvent.cpp
364 3Dconnexion/GuiNativeEventWin32.cpp
365 )
366 SOURCE_GROUP("3D connexion SDK" FILES ${FreeCADGui_SDK_SRCS})
367 SET(FreeCADGui_SDK_MOC_HDRS
368 3Dconnexion/GuiAbstractNativeEvent.h
369 3Dconnexion/GuiNativeEventWin32.h
370 )
371 list(APPEND FreeCADGui_connexion_SRCS
372 ${FreeCADGui_SDK_SRCS}
373 )
374 list(APPEND FreeCADGui_connexion_HDRS
375 ${FreeCADGui_SDK_MOC_HDRS}
376 )
377 endif(FREECAD_USE_3DCONNEXION_LEGACY AND MSVC)
378
379 if(FREECAD_USE_3DCONNEXION_LEGACY AND APPLE)
380 SET(FreeCADGui_SDK_SRCS
381 3Dconnexion/GuiAbstractNativeEvent.cpp
382 3Dconnexion/GuiNativeEventMac.cpp
383 )
384 SOURCE_GROUP("3D connexion SDK" FILES ${FreeCADGui_SDK_SRCS})
385 SET(FreeCADGui_SDK_MOC_HDRS
386 3Dconnexion/GuiAbstractNativeEvent.h
387 3Dconnexion/GuiNativeEventMac.h
388 )
389 list(APPEND FreeCADGui_connexion_SRCS
390 ${FreeCADGui_SDK_SRCS}
391 )
392 list(APPEND FreeCADGui_connexion_HDRS
393 ${FreeCADGui_SDK_MOC_HDRS}
394 )
395 endif(FREECAD_USE_3DCONNEXION_LEGACY AND APPLE)
396
397 if(FREECAD_USE_3DCONNEXION_NAVLIB AND (MSVC OR APPLE))
398 SET(NAVLIB_STUB_DIR ${CMAKE_SOURCE_DIR}/src/3rdParty/3Dconnexion/src)
399 SET(FreeCADGui_SDK_SRCS
400 3Dconnexion/navlib/NavlibCmds.cpp
401 3Dconnexion/navlib/NavlibNavigation.cpp
402 3Dconnexion/navlib/NavlibPivot.cpp
403 ${NAVLIB_STUB_DIR}/navlib_load.cpp
404 ${NAVLIB_STUB_DIR}/navlib_stub.c
405 )
406 SOURCE_GROUP("3Dconnexion Navlib" FILES ${FreeCADGui_SDK_SRCS})
407 SET(FreeCADGui_SDK_MOC_HDRS
408 3Dconnexion/navlib/NavlibInterface.h
409 )
410 list(APPEND FreeCADGui_connexion_SRCS
411 ${FreeCADGui_SDK_SRCS}
412 )
413 list(APPEND FreeCADGui_connexion_HDRS
414 ${FreeCADGui_SDK_MOC_HDRS}
415 )
416 endif(FREECAD_USE_3DCONNEXION_NAVLIB AND (MSVC OR APPLE))
417
418 set_property(SOURCE GraphvizView.h GraphvizView.cpp PROPERTY SKIP_AUTOMOC ON)
419 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/moc_GraphvizView-internal.cpp
420 COMMAND ${QtCore_MOC_EXECUTABLE} -o ${CMAKE_CURRENT_BINARY_DIR}/moc_GraphvizView-internal.cpp ${CMAKE_CURRENT_SOURCE_DIR}/GraphvizView.cpp
421 DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/GraphvizView.cpp)
422
423 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/moc_GraphvizView.cpp
424 COMMAND ${QtCore_MOC_EXECUTABLE} -o ${CMAKE_CURRENT_BINARY_DIR}/moc_GraphvizView.cpp ${CMAKE_CURRENT_SOURCE_DIR}/GraphvizView.h
425 DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/GraphvizView.h)
426
427 set_property(SOURCE GraphvizView.cpp APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/moc_GraphvizView-internal.cpp)
428 set_property(SOURCE GraphvizView.h APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/moc_GraphvizView.cpp)
429
430 SET(Gui_UIC_SRCS
431 Dialogs/AboutApplication.ui
432 Clipping.ui
433 DemoMode.ui
434 Dialogs/DlgActions.ui
435 Dialogs/DlgActivateWindow.ui
436 Dialogs/DlgUnitsCalculator.ui
437 Dialogs/DlgAuthorization.ui
438 Dialogs/DlgChooseIcon.ui
439 Dialogs/DlgCreateNewPreferencePack.ui
440 Dialogs/DlgInputDialog.ui
441 Dialogs/DlgKeyboard.ui
442 Dialogs/DlgMacroExecute.ui
443 Dialogs/DlgRunExternal.ui
444 Dialogs/DlgMacroRecord.ui
445 Dialogs/DlgMaterialProperties.ui
446 Dialogs/DlgOnlineHelp.ui
447 Dialogs/DlgParameter.ui
448 Dialogs/DlgParameterFind.ui
449 Dialogs/DlgPreferencePackManagement.ui
450 Dialogs/DlgPreferences.ui
451 Dialogs/DlgProjectInformation.ui
452 Dialogs/DlgProjectUtility.ui
453 Dialogs/DlgPropertyLink.ui
454 Dialogs/DlgRevertToBackupConfig.ui
455 Dialogs/DlgThemeEditor.ui
456 Dialogs/DlgVersionMigrator.ui
457 PreferencePages/DlgSettings3DView.ui
458 PreferencePages/DlgSettingsCacheDirectory.ui
459 Dialogs/DlgSettingsColorGradient.ui
460 PreferencePages/DlgSettingsDocument.ui
461 PreferencePages/DlgSettingsEditor.ui
462 PreferencePages/DlgSettingsGeneral.ui
463 Dialogs/DlgSettingsImage.ui
464 PreferencePages/DlgSettingsLightSources.ui
465 PreferencePages/DlgSettingsMacro.ui
466 PreferencePages/DlgSettingsNavigation.ui
467 PreferencePages/DlgSettingsNotificationArea.ui
468 PreferencePages/DlgSettingsPythonConsole.ui
469 PreferencePages/DlgSettingsReportView.ui
470 PreferencePages/DlgSettingsSelection.ui
471 PreferencePages/DlgSettingsUI.ui
472 PreferencePages/DlgSettingsViewColor.ui
473 PreferencePages/DlgSettingsWorkbenches.ui
474 PreferencePages/DlgSettingsPDF.ui
475 Dialogs/DlgCheckableMessageBox.ui
476 Dialogs/DlgToolbars.ui
477 Dialogs/DlgTreeWidget.ui
478 Dialogs/DlgLocationAngle.ui
479 Dialogs/DlgLocationPos.ui
480 DocumentRecovery.ui
481 DownloadManager.ui
482 DownloadItem.ui
483 Dialogs/DlgExpressionInput.ui
484 MouseButtons.ui
485 SceneInspector.ui
486 InputVector.ui
487 Placement.ui
488 TaskTransform.ui
489 TextureMapping.ui
490 TaskView/TaskAppearance.ui
491 TaskView/TaskOrientation.ui
492 TaskView/TaskImage.ui
493 TaskView/TaskSolverMessages.ui
494 TaskView/TaskSelectLinkProperty.ui
495 TaskElementColors.ui
496 Dialogs/DlgObjectSelection.ui
497 Dialogs/DlgAddProperty.ui
498 VectorListEditor.ui
499 )
500
501 if(FREECAD_USE_3DCONNEXION_LEGACY)
502 list(APPEND Gui_UIC_SRCS Dialogs/DlgCustomizeSpNavSettings.ui)
503 endif(FREECAD_USE_3DCONNEXION_LEGACY)
504
505 set (FreeCAD_TR_QRC ${CMAKE_CURRENT_BINARY_DIR}/Language/FreeCAD_translation.qrc)
506 qt_find_and_add_translation(QM_SRCS "Language/FreeCAD_*.ts"
507 ${CMAKE_CURRENT_BINARY_DIR}/Language)
508 qt_create_resource_file_prefix(${FreeCAD_TR_QRC} ${QM_SRCS})
509 set(Gui_RES_SRCS
510 Icons/resource.qrc
511 Language/translation.qrc
512 ${FreeCAD_TR_QRC}
513 )
514
515 qt_add_resources(Gui_QRC_SRCS ${Gui_RES_SRCS})
516
517 SOURCE_GROUP("Uic" FILES ${Gui_UIC_HDRS})
518
519 # The command sources
520 SET(Command_CPP_SRCS
521 Action.cpp
522 ActionFunction.cpp
523 Command.cpp
524 CommandDoc.cpp
525 CommandFeat.cpp
526 CommandMacro.cpp
527 CommandStd.cpp
528 CommandWindow.cpp
529 CommandTest.cpp
530 CommandView.cpp
531 CommandStructure.cpp
532 CommandLink.cpp
533 CommandPyImp.cpp
534 ShortcutManager.cpp
535 CommandCompleter.cpp
536 CommandActionPy.cpp
537 )
538 SET(Command_SRCS
539 ${Command_CPP_SRCS}
540 Action.h
541 ActionFunction.h
542 Command.h
543 CommandT.h
544 ShortcutManager.h
545 CommandCompleter.h
546 CommandActionPy.h
547 )
548 SOURCE_GROUP("Command" FILES ${Command_SRCS})
549
550 # The dialog sources
551 SET(Dialog_CPP_SRCS
552 Clipping.cpp
553 DemoMode.cpp
554 Dialogs/DlgAbout.cpp
555 Dialogs/DlgActivateWindowImp.cpp
556 Dialogs/DlgCreateNewPreferencePackImp.cpp
557 Dialogs/DlgUnitsCalculatorImp.cpp
558 Dialogs/DlgInputDialogImp.cpp
559 Dialogs/DlgMacroExecuteImp.cpp
560 Dialogs/DlgRunExternal.cpp
561 Dialogs/DlgEditFileIncludePropertyExternal.cpp
562 Dialogs/DlgMacroRecordImp.cpp
563 Dialogs/DlgMaterialPropertiesImp.cpp
564 Dialogs/DlgParameterImp.cpp
565 Dialogs/DlgParameterFind.cpp
566 Dialogs/DlgPreferencePackManagementImp.cpp
567 Dialogs/DlgProjectInformationImp.cpp
568 Dialogs/DlgProjectUtility.cpp
569 Dialogs/DlgPropertyLink.cpp
570 Dialogs/DlgRevertToBackupConfigImp.cpp
571 Dialogs/DlgExpressionInput.cpp
572 Dialogs/DlgThemeEditor.cpp
573 Dialogs/DlgVersionMigrator.cpp
574 TaskDlgRelocation.cpp
575 Dialogs/DlgCheckableMessageBox.cpp
576 TaskTransform.cpp
577 Dialogs/DlgUndoRedo.cpp
578 InputVector.cpp
579 Placement.cpp
580 PropertyPage.cpp
581 SceneInspector.cpp
582 TextureMapping.cpp
583 Transform.cpp
584 DownloadItem.cpp
585 DownloadManager.cpp
586 DocumentRecovery.cpp
587 TaskElementColors.cpp
588 Dialogs/DlgObjectSelection.cpp
589 Dialogs/DlgAddProperty.cpp
590 VectorListEditor.cpp
591 )
592
593 SET(Dialog_HPP_SRCS
594 Clipping.h
595 DemoMode.h
596 Dialogs/DlgAbout.h
597 Dialogs/DlgActivateWindowImp.h
598 Dialogs/DlgCreateNewPreferencePackImp.h
599 Dialogs/DlgUnitsCalculatorImp.h
600 Dialogs/DlgInputDialogImp.h
601 Dialogs/DlgMacroExecuteImp.h
602 Dialogs/DlgRunExternal.h
603 Dialogs/DlgEditFileIncludePropertyExternal.h
604 Dialogs/DlgMacroRecordImp.h
605 Dialogs/DlgMaterialPropertiesImp.h
606 Dialogs/DlgParameterImp.h
607 Dialogs/DlgParameterFind.h
608 Dialogs/DlgPreferencePackManagementImp.h
609 Dialogs/DlgProjectInformationImp.h
610 Dialogs/DlgProjectUtility.h
611 Dialogs/DlgPropertyLink.h
612 Dialogs/DlgRevertToBackupConfigImp.h
613 Dialogs/DlgCheckableMessageBox.h
614 Dialogs/DlgExpressionInput.h
615 Dialogs/DlgThemeEditor.h
616 Dialogs/DlgVersionMigrator.h
617 TaskDlgRelocation.h
618 TaskTransform.h
619 Dialogs/DlgUndoRedo.h
620 InputVector.h
621 Placement.h
622 PropertyPage.h
623 SceneInspector.h
624 TextureMapping.h
625 Transform.h
626 DownloadItem.h
627 DownloadManager.h
628 DocumentRecovery.h
629 TaskElementColors.h
630 Dialogs/DlgObjectSelection.h
631 Dialogs/DlgAddProperty.h
632 VectorListEditor.h
633 )
634
635 SET(Dialog_SRCS
636 ${Dialog_CPP_SRCS}
637 ${Dialog_HPP_SRCS}
638 Dialogs/AboutApplication.ui
639 Clipping.ui
640 DemoMode.ui
641 Dialogs/DlgActivateWindow.ui
642 Dialogs/DlgUnitsCalculator.ui
643 Dialogs/DlgAuthorization.ui
644 Dialogs/DlgInputDialog.ui
645 Dialogs/DlgAddProperty.ui
646 Dialogs/DlgLocationAngle.ui
647 Dialogs/DlgLocationPos.ui
648 Dialogs/DlgMacroExecute.ui
649 Dialogs/DlgRunExternal.ui
650 Dialogs/DlgMacroRecord.ui
651 Dialogs/DlgMaterialProperties.ui
652 Dialogs/DlgParameter.ui
653 Dialogs/DlgParameterFind.ui
654 Dialogs/DlgPreferencePackManagement.ui
655 Dialogs/DlgProjectInformation.ui
656 Dialogs/DlgProjectUtility.ui
657 Dialogs/DlgPropertyLink.ui
658 Dialogs/DlgRevertToBackupConfig.ui
659 Dialogs/DlgCheckableMessageBox.ui
660 Dialogs/DlgTreeWidget.ui
661 Dialogs/DlgExpressionInput.ui
662 Dialogs/DlgCreateNewPreferencePack.ui
663 Dialogs/DlgVersionMigrator.ui
664 DownloadManager.ui
665 DownloadItem.ui
666 DocumentRecovery.ui
667 MouseButtons.ui
668 InputVector.ui
669 Placement.ui
670 SceneInspector.ui
671 TextureMapping.ui
672 TaskElementColors.ui
673 Dialogs/DlgObjectSelection.ui
674 VectorListEditor.ui
675 )
676 SOURCE_GROUP("Dialog" FILES ${Dialog_SRCS})
677
678 # The customize dialog sources
679 SET(Dialog_Customize_CPP_SRCS
680 Dialogs/DlgActionsImp.cpp
681 Dialogs/DlgCustomizeImp.cpp
682 Dialogs/DlgKeyboardImp.cpp
683 Dialogs/DlgToolbarsImp.cpp
684 PreferencePages/ListWidgetDragBugFix.cpp
685 )
686 SET(Dialog_Customize_HPP_SRCS
687 Dialogs/DlgActionsImp.h
688 Dialogs/DlgCustomizeImp.h
689 Dialogs/DlgKeyboardImp.h
690 Dialogs/DlgToolbarsImp.h
691 PreferencePages/ListWidgetDragBugFix.h
692 )
693
694 if(FREECAD_USE_3DCONNEXION_LEGACY)
695 list(APPEND Dialog_Customize_CPP_SRCS Dialogs/DlgCustomizeSpaceball.cpp Dialogs/DlgCustomizeSpNavSettings.cpp)
696 list(APPEND Dialog_Customize_HPP_SRCS Dialogs/DlgCustomizeSpaceball.h Dialogs/DlgCustomizeSpNavSettings.h)
697 endif(FREECAD_USE_3DCONNEXION_LEGACY)
698
699 SET(Dialog_Customize_SRCS
700 ${Dialog_Customize_CPP_SRCS}
701 ${Dialog_Customize_HPP_SRCS}
702 Dialogs/DlgActions.ui
703 Dialogs/DlgChooseIcon.ui
704 Dialogs/DlgKeyboard.ui
705 Dialogs/DlgToolbars.ui
706 )
707
708 if(FREECAD_USE_3DCONNEXION_LEGACY)
709 list(APPEND Dialog_Customize_SRCS Dialogs/DlgCustomizeSpNavSettings.ui)
710 endif(FREECAD_USE_3DCONNEXION_LEGACY)
711
712 SOURCE_GROUP("Dialog\\Customize" FILES ${Dialog_Customize_SRCS})
713
714 # The settings dialog sources
715 SET(Dialog_Settings_CPP_SRCS
716 Dialogs/DlgOnlineHelpImp.cpp
717 Dialogs/DlgPreferencesImp.cpp
718 PreferencePages/DlgSettings3DViewImp.cpp
719 PreferencePages/DlgSettingsPDF.cpp
720 PreferencePages/DlgSettingsCacheDirectory.cpp
721 Dialogs/DlgSettingsColorGradientImp.cpp
722 PreferencePages/DlgSettingsDocumentImp.cpp
723 PreferencePages/DlgSettingsEditor.cpp
724 PreferencePages/DlgSettingsGeneral.cpp
725 Dialogs/DlgSettingsImageImp.cpp
726 PreferencePages/DlgSettingsLightSources.cpp
727 PreferencePages/DlgSettingsMacroImp.cpp
728 PreferencePages/DlgSettingsNavigation.cpp
729 PreferencePages/DlgSettingsNotificationArea.cpp
730 PreferencePages/DlgSettingsPythonConsole.cpp
731 PreferencePages/DlgSettingsReportView.cpp
732 PreferencePages/DlgSettingsSelection.cpp
733 PreferencePages/DlgSettingsUI.cpp
734 PreferencePages/DlgSettingsViewColor.cpp
735 PreferencePages/DlgSettingsWorkbenchesImp.cpp
736 PreferencePages/DlgSettingsAdvanced.cpp
737 )
738 SET(Dialog_Settings_HPP_SRCS
739 Dialogs/DlgOnlineHelpImp.h
740 Dialogs/DlgPreferencesImp.h
741 PreferencePages/DlgSettings3DViewImp.h
742 PreferencePages/DlgSettingsPDF.h
743 PreferencePages/DlgSettingsCacheDirectory.h
744 Dialogs/DlgSettingsColorGradientImp.h
745 PreferencePages/DlgSettingsDocumentImp.h
746 PreferencePages/DlgSettingsEditor.h
747 PreferencePages/DlgSettingsGeneral.h
748 Dialogs/DlgSettingsImageImp.h
749 PreferencePages/DlgSettingsLightSources.h
750 PreferencePages/DlgSettingsMacroImp.h
751 PreferencePages/DlgSettingsNavigation.h
752 PreferencePages/DlgSettingsNotificationArea.h
753 PreferencePages/DlgSettingsPythonConsole.h
754 PreferencePages/DlgSettingsReportView.h
755 PreferencePages/DlgSettingsSelection.h
756 PreferencePages/DlgSettingsUI.h
757 PreferencePages/DlgSettingsViewColor.h
758 PreferencePages/DlgSettingsWorkbenchesImp.h
759 PreferencePages/DlgSettingsAdvanced.h
760 )
761 SET(Dialog_Settings_SRCS
762 ${Dialog_Settings_CPP_SRCS}
763 ${Dialog_Settings_HPP_SRCS}
764 Dialogs/DlgOnlineHelp.ui
765 Dialogs/DlgPreferences.ui
766 PreferencePages/DlgSettings3DView.ui
767 PreferencePages/DlgSettingsCacheDirectory.ui
768 Dialogs/DlgSettingsColorGradient.ui
769 PreferencePages/DlgSettingsDocument.ui
770 PreferencePages/DlgSettingsEditor.ui
771 PreferencePages/DlgSettingsGeneral.ui
772 Dialogs/DlgSettingsImage.ui
773 PreferencePages/DlgSettingsLightSources.ui
774 PreferencePages/DlgSettingsMacro.ui
775 PreferencePages/DlgSettingsNavigation.ui
776 PreferencePages/DlgSettingsNotificationArea.ui
777 PreferencePages/DlgSettingsPythonConsole.ui
778 PreferencePages/DlgSettingsReportView.ui
779 PreferencePages/DlgSettingsSelection.ui
780 PreferencePages/DlgSettingsUI.ui
781 PreferencePages/DlgSettingsViewColor.ui
782 PreferencePages/DlgSettingsWorkbenches.ui
783 PreferencePages/DlgSettingsPDF.ui
784 )
785 SOURCE_GROUP("Dialog\\Settings" FILES ${Dialog_Settings_SRCS})
786
787 # The dock windows sources
788 SET(Dock_Windows_CPP_SRCS
789 ComboView.cpp
790 DockWindow.cpp
791 PropertyView.cpp
792 ReportView.cpp
793 Selection/SelectionView.cpp
794 ToolBox.cpp
795 Tree.cpp
796 TreeView.cpp
797 DAGView/DAGView.cpp
798 DAGView/DAGModel.cpp
799 DAGView/DAGRectItem.cpp
800 DAGView/DAGModelGraph.cpp
801 )
802 SET(Dock_Windows_HPP_SRCS
803 ComboView.h
804 DockWindow.h
805 PropertyView.h
806 ReportView.h
807 Selection/SelectionView.h
808 ToolBox.h
809 Tree.h
810 TreeView.h
811 DAGView/DAGView.h
812 DAGView/DAGModel.h
813 DAGView/DAGRectItem.h
814 DAGView/DAGModelGraph.h
815 )
816 SET(Dock_Windows_SRCS
817 ${Dock_Windows_CPP_SRCS}
818 ${Dock_Windows_HPP_SRCS}
819 )
820 SOURCE_GROUP("Dock Windows" FILES ${Dock_Windows_SRCS})
821
822 # The editor sources
823 SET(Editor_CPP_SRCS
824 CallTips.cpp
825 EditorView.cpp
826 TextDocumentEditorView.cpp
827 PythonConsole.cpp
828 PythonConsolePy.cpp
829 PythonDebugger.cpp
830 PythonTracing.cpp
831 PythonEditor.cpp
832 SyntaxHighlighter.cpp
833 TextEdit.cpp
834 )
835 SET(Editor_HPP_SRCS
836 CallTips.h
837 EditorView.h
838 TextDocumentEditorView.h
839 PythonConsole.h
840 PythonConsolePy.h
841 PythonDebugger.h
842 PythonTracing.h
843 PythonEditor.h
844 SyntaxHighlighter.h
845 TextEdit.h
846 )
847 SET(Editor_SRCS
848 ${Editor_CPP_SRCS}
849 ${Editor_HPP_SRCS}
850 )
851 SOURCE_GROUP("Editor" FILES ${Editor_SRCS})
852
853 # The help system
854 SET(Help_CPP_SRCS
855 Assistant.cpp
856 NetworkRetriever.cpp
857 OnlineDocumentation.cpp
858 WhatsThis.cpp
859 )
860 SET(Help_SRCS
861 ${Help_CPP_SRCS}
862 Assistant.h
863 NetworkRetriever.h
864 OnlineDocumentation.h
865 WhatsThis.h
866 )
867 SOURCE_GROUP("Help" FILES ${Help_SRCS})
868
869
870 # The i18n sources
871 SET(Language_SRCS
872 Language/Translator.cpp
873 Language/Translator.h
874 )
875 SOURCE_GROUP("Language" FILES ${Language_SRCS})
876
877 # The property editor
878 SET(Propertyeditor_SRCS
879 propertyeditor/PropertyEditor.cpp
880 propertyeditor/PropertyEditor.h
881 propertyeditor/PropertyItem.cpp
882 propertyeditor/PropertyItem.h
883 propertyeditor/PropertyItemDelegate.cpp
884 propertyeditor/PropertyItemDelegate.h
885 propertyeditor/PropertyModel.cpp
886 propertyeditor/PropertyModel.h
887 )
888 SOURCE_GROUP("Propertyeditor" FILES ${Propertyeditor_SRCS})
889
890 # The task view
891 SET(Task_View_SRCS
892 TaskView/TaskAppearance.cpp
893 TaskView/TaskAppearance.h
894 TaskView/TaskAppearance.ui
895 TaskView/TaskOrientation.cpp
896 TaskView/TaskOrientation.h
897 TaskView/TaskOrientation.ui
898 TaskView/TaskImage.cpp
899 TaskView/TaskImage.h
900 TaskView/TaskImage.ui
901 TaskView/TaskSelectLinkProperty.cpp
902 TaskView/TaskSelectLinkProperty.h
903 TaskView/TaskSelectLinkProperty.ui
904 TaskView/TaskSolverMessages.cpp
905 TaskView/TaskSolverMessages.h
906 TaskView/TaskSolverMessages.ui
907 TaskView/TaskEditControl.cpp
908 TaskView/TaskEditControl.h
909 TaskView/TaskEditControl.ui
910 TaskView/TaskView.cpp
911 TaskView/TaskView.h
912 TaskView/TaskDialog.cpp
913 TaskView/TaskDialog.h
914 TaskView/TaskDialogPython.cpp
915 TaskView/TaskDialogPython.h
916 TaskView/TaskWatcher.cpp
917 TaskView/TaskWatcher.h
918 )
919 SOURCE_GROUP("Task View" FILES ${Task_View_SRCS})
920
921 SET(qsintActionPanel_SRCS
922 QSint/actionpanel/actionbox.cpp
923 QSint/actionpanel/actionbox.h
924 QSint/actionpanel/actionlabel.cpp
925 QSint/actionpanel/actionlabel.h
926 QSint/actionpanel/actiongroup.cpp
927 QSint/actionpanel/actiongroup.h
928 QSint/actionpanel/actionpanel.cpp
929 QSint/actionpanel/actionpanel.h
930 QSint/actionpanel/actionpanelscheme.cpp
931 QSint/actionpanel/actionpanelscheme.h
932 QSint/actionpanel/taskgroup_p.cpp
933 QSint/actionpanel/taskgroup_p.h
934 QSint/actionpanel/taskheader_p.cpp
935 QSint/actionpanel/taskheader_p.h
936 )
937 SOURCE_GROUP("Widget\\QSintActionPanel" FILES ${qsintActionPanel_SRCS})
938 set(qsint_MOC_HDRS
939 QSint/actionpanel/actionbox.h
940 QSint/actionpanel/actionlabel.h
941 QSint/actionpanel/actiongroup.h
942 QSint/actionpanel/actionpanel.h
943 QSint/actionpanel/taskheader_p.h
944 )
945
946 qt_wrap_cpp(qsint_MOC_SRCS ${qsint_MOC_HDRS})
947 SOURCE_GROUP("Widget\\QSintActionPanel\\Mocs" FILES ${qsint_MOC_SRCS})
948
949 # The 3d view
950 SET(View3D_CPP_SRCS
951 Camera.cpp
952 Flag.cpp
953 GLBuffer.cpp
954 GLPainter.cpp
955 Multisample.cpp
956 MouseSelection.cpp
957 SplitView3DInventor.cpp
958 View.cpp
959 View3DInventor.cpp
960 View3DInventorSelection.cpp
961 View3DInventorViewer.cpp
962 View3DInventorRiftViewer.cpp
963 View3DSettings.cpp
964 CoinRiftWidget.cpp
965 View3DPy.cpp
966 View3DViewerPy.cpp
967 NaviCube.cpp
968 )
969 SET(View3D_SRCS
970 ${View3D_CPP_SRCS}
971 Camera.h
972 Flag.h
973 GLBuffer.h
974 GLPainter.h
975 Multisample.h
976 MouseSelection.h
977 SplitView3DInventor.h
978 View.h
979 View3DInventor.h
980 View3DInventorSelection.h
981 View3DInventorViewer.h
982 View3DPy.h
983 View3DInventorRiftViewer.h
984 View3DSettings.h
985 CoinRiftWidget.h
986 View3DViewerPy.h
987 NaviCube.h
988 )
989 SOURCE_GROUP("View3D" FILES ${View3D_SRCS})
990
991 SET(Navigation_CPP_SRCS
992 Navigation/NavigationStateChart.cpp
993 Navigation/NavigationStyle.cpp
994 Navigation/NavigationStylePyImp.cpp
995 Navigation/InventorNavigationStyle.cpp
996 Navigation/CADNavigationStyle.cpp
997 Navigation/RevitNavigationStyle.cpp
998 Navigation/BlenderNavigationStyle.cpp
999 Navigation/SiemensNXNavigationStyle.cpp
1000 Navigation/SolidWorksNavigationStyle.cpp
1001 Navigation/MayaGestureNavigationStyle.cpp
1002 Navigation/OpenCascadeNavigationStyle.cpp
1003 Navigation/OpenSCADNavigationStyle.cpp
1004 Navigation/TinkerCADNavigationStyle.cpp
1005 Navigation/TouchpadNavigationStyle.cpp
1006 Navigation/GestureNavigationStyle.cpp
1007 Navigation/NavigationAnimator.cpp
1008 Navigation/NavigationAnimation.cpp
1009 )
1010 SET(Navigation_SRCS
1011 ${Navigation_CPP_SRCS}
1012 Navigation/NavigationStateChart.h
1013 Navigation/NavigationStyle.h
1014 Navigation/NavigationStyle.pyi
1015 Navigation/GestureNavigationStyle.h
1016 Navigation/NavigationAnimator.h
1017 Navigation/NavigationAnimation.h
1018 Navigation/SiemensNXNavigationStyle.h
1019 )
1020 SOURCE_GROUP("Navigation" FILES ${Navigation_SRCS})
1021
1022 #quarter sources
1023 FILE(GLOB_RECURSE Quarter_CPP_SRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} Quarter/*.cpp)
1024 FILE(GLOB_RECURSE Quarter_H_SRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} Quarter/*.h)
1025
1026 SET(Quarter_MOC_HDR
1027 Quarter/SignalThread.h
1028 Quarter/InteractionMode.h
1029 Quarter/SensorManager.h
1030 Quarter/ContextMenu.h
1031 Quarter/eventhandlers/FocusHandler.h
1032 Quarter/eventhandlers/DragDropHandler.h
1033 Quarter/eventhandlers/EventFilter.h
1034 Quarter/QuarterWidget.h
1035 )
1036
1037 qt_wrap_cpp(Quarter_MOC_SRCS ${Quarter_MOC_HDR})
1038
1039 SET(Quarter_SRCS
1040 ${Quarter_CPP_SRC}
1041 ${Quarter_H_SRC}
1042 ${Quarter_MOC_SRCS}
1043 )
1044 SOURCE_GROUP("Quarter" FILES ${Quarter_SRCS})
1045
1046 # The view provider sources
1047 SET(Viewprovider_CPP_SRCS
1048 ViewProvider.cpp
1049 ViewProviderExtension.cpp
1050 ViewProviderExtensionPyImp.cpp
1051 ViewProviderGroupExtension.cpp
1052 ViewProviderGeoFeatureGroupExtension.cpp
1053 ViewProviderOriginGroupExtension.cpp
1054 ViewProviderSuppressibleExtension.cpp
1055 ViewProviderAnnotation.cpp
1056 ViewProviderDocumentObject.cpp
1057 ViewProviderDocumentObjectGroup.cpp
1058 ViewProviderDocumentObjectPyImp.cpp
1059 ViewProviderGeometryObjectPyImp.cpp
1060 ViewProviderDragger.cpp
1061 ViewProviderExtern.cpp
1062 ViewProviderFeature.cpp
1063 ViewProviderGeometryObject.cpp
1064 ViewProviderImagePlane.cpp
1065 ViewProviderInventorObject.cpp
1066 ViewProviderPyImp.cpp
1067 ViewProviderFeaturePython.cpp
1068 ViewProviderVRMLObject.cpp
1069 ViewProviderBuilder.cpp
1070 ViewProviderPlacement.cpp
1071 ViewProviderDatum.cpp
1072 ViewProviderPlane.cpp
1073 ViewProviderPoint.cpp
1074 ViewProviderLine.cpp
1075 ViewProviderGeoFeatureGroup.cpp
1076 ViewProviderOriginGroup.cpp
1077 ViewProviderPart.cpp
1078 ViewProviderCoordinateSystem.cpp
1079 ViewProviderMaterialObject.cpp
1080 ViewProviderTextDocument.cpp
1081 ViewProviderTextureExtension.cpp
1082 ViewProviderLink.cpp
1083 LinkViewPyImp.cpp
1084 ViewProviderLinkPyImp.cpp
1085 ViewProviderVarSet.cpp
1086 AxisOriginPyImp.cpp
1087 AxisOrigin.cpp
1088 )
1089 SET(Viewprovider_SRCS
1090 ${Viewprovider_CPP_SRCS}
1091 ViewProvider.h
1092 ViewProviderExtension.h
1093 ViewProviderGroupExtension.h
1094 ViewProviderGeoFeatureGroupExtension.h
1095 ViewProviderOriginGroupExtension.h
1096 ViewProviderAnnotation.h
1097 ViewProviderDocumentObject.h
1098 ViewProviderDocumentObjectGroup.h
1099 ViewProviderDragger.h
1100 ViewProviderExtern.h
1101 ViewProviderFeature.h
1102 ViewProviderGeometryObject.h
1103 ViewProviderImagePlane.h
1104 ViewProviderInventorObject.h
1105 ViewProviderFeaturePython.h
1106 ViewProviderVRMLObject.h
1107 ViewProviderBuilder.h
1108 ViewProviderPlacement.h
1109 ViewProviderDatum.h
1110 ViewProviderPlane.h
1111 ViewProviderPoint.h
1112 ViewProviderLine.h
1113 ViewProviderGeoFeatureGroup.h
1114 ViewProviderOriginGroup.h
1115 ViewProviderPart.h
1116 ViewProviderCoordinateSystem.h
1117 ViewProviderMaterialObject.h
1118 ViewProviderTextDocument.h
1119 ViewProviderTextureExtension.h
1120 ViewProviderLink.h
1121 ViewProviderVarSet.h
1122 AxisOrigin.h
1123 )
1124 SOURCE_GROUP("View3D\\Viewprovider" FILES ${Viewprovider_SRCS})
1125
1126 # The Inventor sources
1127 SET(Inventor_CPP_SRCS
1128 Inventor/MarkerBitmaps.cpp
1129 Inventor/SmSwitchboard.cpp
1130 Inventor/So3DAnnotation.cpp
1131 Inventor/SoAutoZoomTranslation.cpp
1132 Inventor/SoAxisCrossKit.cpp
1133 Inventor/SoFCPlacementIndicatorKit.cpp
1134 Inventor/SoDrawingGrid.cpp
1135 Inventor/SoFCBackgroundGradient.cpp
1136 Inventor/SoFCBoundingBox.cpp
1137 Inventor/SoMouseWheelEvent.cpp
1138 Inventor/SoFCTransform.cpp
1139 Inventor/SoToggleSwitch.cpp
1140 Inventor/Draggers/SoTransformDragger.cpp
1141 Inventor/Draggers/SoLinearDragger.cpp
1142 Inventor/Draggers/SoLinearDraggerGeometry.cpp
1143 Inventor/Draggers/SoPlanarDragger.cpp
1144 Inventor/Draggers/SoRotationDragger.cpp
1145 Inventor/Draggers/SoRotationDraggerGeometry.cpp
1146 Inventor/Draggers/Gizmo.cpp
1147 SoFCColorBar.cpp
1148 SoFCColorBarNotifier.cpp
1149 SoFCColorGradient.cpp
1150 SoFCColorLegend.cpp
1151 SoFCDB.cpp
1152 SoFCInteractiveElement.cpp
1153 SoFCOffscreenRenderer.cpp
1154 SoQtOffscreenRendererPy.cpp
1155 Selection/SoFCSelection.cpp
1156 Selection/SoFCUnifiedSelection.cpp
1157 Selection/SoFCSelectionContext.cpp
1158 Selection/SoFCSelectionAction.cpp
1159 SoFCVectorizeSVGAction.cpp
1160 SoFCVectorizeU3DAction.cpp
1161 SoDevicePixelRatioElement.cpp
1162 SoTextLabel.cpp
1163 SoDatumLabel.cpp
1164 SoTouchEvents.cpp
1165 ArcEngine.cpp
1166 )
1167 SET(Inventor_SRCS
1168 ${Inventor_CPP_SRCS}
1169 Inventor/MarkerBitmaps.h
1170 Inventor/SmSwitchboard.h
1171 Inventor/SoAutoZoomTranslation.h
1172 Inventor/SoAxisCrossKit.h
1173 Inventor/SoFCPlacementIndicatorKit.h
1174 Inventor/SoDrawingGrid.h
1175 Inventor/SoFCBackgroundGradient.h
1176 Inventor/SoFCBoundingBox.h
1177 Inventor/SoMouseWheelEvent.h
1178 Inventor/SoFCTransform.h
1179 Inventor/SoToggleSwitch.h
1180 Inventor/Draggers/SoTransformDragger.h
1181 Inventor/Draggers/SoLinearDragger.h
1182 Inventor/Draggers/SoLinearDraggerGeometry.h
1183 Inventor/Draggers/SoPlanarDragger.h
1184 Inventor/Draggers/SoRotationDragger.h
1185 Inventor/Draggers/SoRotationDraggerGeometry.h
1186 Inventor/Draggers/Gizmo.h
1187 Inventor/Draggers/GizmoStyleParameters.h
1188 SoFCColorBar.h
1189 SoFCColorBarNotifier.h
1190 SoFCColorGradient.h
1191 SoFCColorLegend.h
1192 SoFCDB.h
1193 SoFCInteractiveElement.h
1194 SoFCOffscreenRenderer.h
1195 SoQtOffscreenRendererPy.h
1196 Selection/SoFCSelection.h
1197 Selection/SoFCUnifiedSelection.h
1198 Selection/SoFCSelectionContext.h
1199 Selection/SoFCSelectionAction.h
1200 SoFCVectorizeSVGAction.h
1201 SoFCVectorizeU3DAction.h
1202 SoDevicePixelRatioElement.h
1203 SoTextLabel.h
1204 SoDatumLabel.h
1205 SoTouchEvents.h
1206 ArcEngine.h
1207 )
1208 SOURCE_GROUP("View3D\\Inventor" FILES ${Inventor_SRCS})
1209
1210 # The widget sources
1211 SET(Widget_CPP_SRCS
1212 ComboLinks.cpp
1213 FileDialog.cpp
1214 MainWindow.cpp
1215 MainWindowPy.cpp
1216 NotificationBox.cpp
1217 NotificationArea.cpp
1218 PrefWidgets.cpp
1219 InputField.cpp
1220 ProgressBar.cpp
1221 ProgressDialog.cpp
1222 QuantitySpinBox.cpp
1223 SpinBox.cpp
1224 SplashScreen.cpp
1225 PythonWrapper.cpp
1226 UiLoader.cpp
1227 WidgetFactory.cpp
1228 Widgets.cpp
1229 Window.cpp
1230 WorkbenchSelector.cpp
1231 ElideLabel.cpp
1232 ElideCheckBox.cpp
1233 FontScaledSVG.cpp
1234 SplitButton.cpp
1235 )
1236 SET(Widget_HPP_SRCS
1237 ComboLinks.h
1238 FileDialog.h
1239 MainWindow.h
1240 MainWindowPy.h
1241 NotificationBox.h
1242 NotificationArea.h
1243 PrefWidgets.h
1244 InputField.h
1245 ProgressBar.h
1246 ProgressDialog.h
1247 QuantitySpinBox.h
1248 QuantitySpinBox_p.h
1249 SpinBox.h
1250 SplashScreen.h
1251 PythonWrapper.h
1252 UiLoader.h
1253 WidgetFactory.h
1254 Widgets.h
1255 Window.h
1256 WorkbenchSelector.h
1257 ElideLabel.h
1258 ElideCheckBox.h
1259 FontScaledSVG.h
1260 SplitButton.h
1261 )
1262 SET(Widget_SRCS
1263 ${Widget_CPP_SRCS}
1264 ${Widget_HPP_SRCS}
1265 )
1266 SOURCE_GROUP("Widget" FILES ${Widget_SRCS})
1267
1268 SET(Params_CPP_SRCS
1269 TreeParams.cpp
1270 OverlayParams.cpp
1271 ParamHandler.cpp
1272 ViewParams.cpp
1273 )
1274
1275 SET(Params_HPP_SRCS
1276 TreeParams.h
1277 OverlayParams.h
1278 ParamHandler.cpp
1279 ViewParams.h
1280 )
1281
1282 SET(Params_SRCS
1283 ${Params_CPP_SRCS}
1284 ${Params_HPP_SRCS}
1285 )
1286 SOURCE_GROUP("Params" FILES ${Params_SRCS})
1287 # The view sources
1288 SET(View_CPP_SRCS
1289 MDIView.cpp
1290 MDIViewPy.cpp
1291 MDIViewPyWrap.cpp
1292 GraphvizView.cpp
1293 ImageView.cpp
1294 ActiveObjectList.cpp
1295 )
1296 SET(View_HPP_SRCS
1297 MDIView.h
1298 MDIViewPy.h
1299 MDIViewPyWrap.h
1300 GraphvizView.h
1301 ImageView.h
1302 ActiveObjectList.h
1303 )
1304 SET(View_SRCS
1305 ${View_CPP_SRCS}
1306 ${View_HPP_SRCS}
1307 )
1308 SOURCE_GROUP("View" FILES ${View_SRCS})
1309
1310 # The workbench sources
1311 SET(Workbench_CPP_SRCS
1312 DockWindowManager.cpp
1313 OverlayManager.cpp
1314 OverlayWidgets.cpp
1315 MenuManager.cpp
1316 PythonWorkbenchPyImp.cpp
1317 ToolBarAreaWidget.cpp
1318 ToolBarManager.cpp
1319 ToolBoxManager.cpp
1320 Workbench.cpp
1321 WorkbenchFactory.cpp
1322 WorkbenchManager.cpp
1323 WorkbenchManipulator.cpp
1324 WorkbenchManipulatorPython.cpp
1325 WorkbenchPyImp.cpp
1326 )
1327 SET(Workbench_SRCS
1328 ${Workbench_CPP_SRCS}
1329 DockWindowManager.h
1330 OverlayManager.h
1331 OverlayWidgets.h
1332 MenuManager.h
1333 ToolBarAreaWidget.h
1334 ToolBarManager.h
1335 ToolBoxManager.h
1336 Workbench.h
1337 WorkbenchFactory.h
1338 WorkbenchManager.h
1339 WorkbenchManipulator.h
1340 WorkbenchManipulatorPython.h
1341 )
1342 SOURCE_GROUP("Workbench" FILES ${Workbench_SRCS})
1343
1344 SET(Selection_SRCS
1345 Selection/SelectionObjectPyImp.cpp
1346 Selection/SelectionObject.h
1347 Selection/SelectionObject.cpp
1348 Selection/Selection.h
1349 Selection/Selection.cpp
1350 Selection/SelectionFilter.h
1351 Selection/SelectionFilter.cpp
1352 Selection/SelectionFilterPy.h
1353 Selection/SelectionFilterPy.cpp
1354 Selection/SelectionFilter.y
1355 Selection/SelectionFilter.l
1356 Selection/SelectionObserverPython.cpp
1357 Selection/SelectionObserverPython.h
1358 )
1359 SOURCE_GROUP("Selection" FILES ${Selection_SRCS})
1360
1361 # The FreeCADGui sources
1362 SET(FreeCADGui_CPP_SRCS
1363 Application.cpp
1364 ApplicationPy.cpp
1365 AutoSaver.cpp
1366 BitmapFactory.cpp
1367 Document.cpp
1368 DocumentModel.cpp
1369 DocumentPyImp.cpp
1370 DocumentObserver.cpp
1371 DocumentObserverPython.cpp
1372 EditableDatumLabel.cpp
1373 ExpressionBinding.cpp
1374 ExpressionBindingPy.cpp
1375 GraphicsViewZoom.cpp
1376 ExpressionCompleter.cpp
1377 FileHandler.cpp
1378 FileHandler.h
1379 FreeCADStyle.cpp
1380 GuiApplication.cpp
1381 GuiApplicationNativeEventAware.cpp
1382 GuiConsole.cpp
1383 InputHintWidget.cpp
1384 InputHintPy.cpp
1385 Macro.cpp
1386 MergeDocuments.cpp
1387 ModuleIO.cpp
1388 Namespace.h
1389 resource.cpp
1390 Control.cpp
1391 SpaceballEvent.cpp
1392 StatusBarLabel.cpp
1393 PreferencePackManager.cpp
1394 Thumbnail.cpp
1395 Utilities.cpp
1396 WaitCursor.cpp
1397 ManualAlignment.cpp
1398 StartupProcess.cpp
1399 TransactionObject.cpp
1400 ToolHandler.cpp
1401 StyleParameters/Parser.cpp
1402 StyleParameters/ParameterManager.cpp
1403 )
1404 SET(FreeCADGui_SRCS
1405 Application.h
1406 AutoSaver.h
1407 BitmapFactory.h
1408 Document.h
1409 DocumentModel.h
1410 DocumentObserver.h
1411 DocumentObserverPython.h
1412 EditableDatumLabel.h
1413 ExpressionBinding.h
1414 ExpressionBindingPy.h
1415 ExpressionCompleter.h
1416 FreeCADGuiInit.py
1417 FreeCADStyle.h
1418 GraphicsViewZoom.h
1419 GuiApplication.h
1420 GuiApplicationNativeEventAware.h
1421 3Dconnexion/GuiAbstractNativeEvent.h
1422 GuiConsole.h
1423 InventorAll.h
1424 InputHint.h
1425 InputHintPy.h
1426 InputHintWidget.h
1427 Macro.h
1428 MergeDocuments.h
1429 MetaTypes.h
1430 ModuleIO.h
1431 Notifications.h
1432 PreCompiled.h
1433 QtAll.h
1434 Control.h
1435 SpaceballEvent.h
1436 PreferencePackManager.h
1437 Thumbnail.h
1438 Tools.h
1439 Utilities.h
1440 WaitCursor.h
1441 ManualAlignment.h
1442 StartupProcess.h
1443 StatusBarLabel.h
1444 TransactionObject.h
1445 ToolHandler.h
1446 StyleParameters/Parser.h
1447 StyleParameters/ParameterManager.h
1448 )
1449
1450 SET(FreeCADGui_SRCS
1451 ${FreeCADGui_connexion_SRCS}
1452 ${FreeCADGui_connexion_HDRS}
1453 ${FreeCADGui_CPP_SRCS}
1454 ${FreeCADGui_Pyi_SRCS}
1455 ${qsint_MOC_SRCS}
1456 ${Gui_QRC_SRCS}
1457 ${Gui_UIC_HDRS}
1458 ${Command_SRCS}
1459 ${Dialog_SRCS}
1460 ${Dialog_Customize_SRCS}
1461 ${Dialog_Settings_SRCS}
1462 ${Dock_Windows_SRCS}
1463 ${Editor_SRCS}
1464 ${Help_SRCS}
1465 ${Inventor_CPP_SRCS}
1466 ${Language_SRCS}
1467 ${Propertyeditor_SRCS}
1468 ${Task_View_SRCS}
1469 ${qsintActionPanel_SRCS}
1470 ${Resource_SRCS}
1471 ${Quarter_SRCS}
1472 ${View3D_SRCS}
1473 ${Navigation_SRCS}
1474 ${Viewprovider_SRCS}
1475 ${Widget_SRCS}
1476 ${Params_SRCS}
1477 ${View_SRCS}
1478 ${Workbench_SRCS}
1479 ${Selection_SRCS}
1480 ${FreeCADGui_SRCS}
1481 )
1482
1483 if(MSVC)
1484 SET(FreeCADGui_CPP_SRCS
1485 Language/Translator.cpp
1486 propertyeditor/PropertyEditor.cpp
1487 propertyeditor/PropertyItem.cpp
1488 propertyeditor/PropertyItemDelegate.cpp
1489 propertyeditor/PropertyModel.cpp
1490 TaskView/TaskAppearance.cpp
1491 TaskView/TaskOrientation.cpp
1492 TaskView/TaskImage.cpp
1493 TaskView/TaskSelectLinkProperty.cpp
1494 TaskView/TaskSolverMessages.ui
1495 TaskView/TaskEditControl.cpp
1496 TaskView/TaskView.cpp
1497 ${Command_CPP_SRCS}
1498 ${Dialog_CPP_SRCS}
1499 ${Dialog_Customize_CPP_SRCS}
1500 ${Dialog_Settings_CPP_SRCS}
1501 ${Dock_Windows_CPP_SRCS}
1502 ${Editor_CPP_SRCS}
1503 ${Help_CPP_SRCS}
1504 ${Inventor_CPP_SRCS}
1505 ${View3D_CPP_SRCS}
1506 ${Viewprovider_CPP_SRCS}
1507 ${Widget_CPP_SRCS}
1508 ${Workbench_CPP_SRCS}
1509 ${FreeCADGui_CPP_SRCS}
1510 )
1511 endif(MSVC)
1512
1513 if(FREECAD_USE_PCH)
1514 target_precompile_headers(FreeCADGui PRIVATE
1515 $<$<COMPILE_LANGUAGE:CXX>:"${CMAKE_CURRENT_LIST_DIR}/PreCompiled.h">
1516 )
1517
1518 set_source_files_properties(
1519 ${qsintActionPanel_SRCS}
1520 ${Quarter_SRCS}
1521 PROPERTIES SKIP_PRECOMPILE_HEADERS TRUE)
1522 endif(FREECAD_USE_PCH)
1523
1524 if (FREECAD_USE_QT_DIALOGS)
1525 set_source_files_properties(FileDialog.cpp PROPERTIES COMPILE_FLAGS -DUSE_QT_DIALOGS)
1526 endif()
1527
1528 # Suppress some very long Eigen3 warnings of older versions and
1529 # suppress this warning for the SbMatrix class
1530 if (EIGEN3_NO_DEPRECATED_COPY)
1531 set_source_files_properties(
1532 NaviCube.cpp
1533 Inventor/SoAutoZoomTranslation.cpp
1534 Inventor/Draggers/SoTransformDragger.cpp
1535 Inventor/Draggers/SoLinearDragger.cpp
1536 Inventor/Draggers/SoLinearDraggerGeometry.cpp
1537 Inventor/Draggers/SoPlanarDragger.cpp
1538 Inventor/Draggers/SoRotationDragger.cpp
1539 Inventor/Draggers/SoRotationDraggerGeometry.cpp
1540 Inventor/Draggers/Gizmo.cpp
1541 SoFCOffscreenRenderer.cpp
1542 Selection/SoFCSelectionAction.cpp
1543 Quarter/QuarterWidget.cpp
1544 View3DInventorViewer.cpp
1545 PROPERTIES COMPILE_FLAGS ${EIGEN3_NO_DEPRECATED_COPY})
1546 endif ()
1547
1548 target_sources(FreeCADGui PRIVATE ${FreeCADGui_SRCS})
1549 target_link_libraries(FreeCADGui PUBLIC ${FreeCADGui_LIBS})
1550
1551 if (MSVC)
1552 target_compile_definitions(FreeCADGui PRIVATE WIN32_LEAN_AND_MEAN)
1553 target_compile_options(FreeCADGui PRIVATE /wd4251 /wd4273 /wd4275)
1554 endif()
1555
1556 if (FREECAD_WARN_ERROR)
1557 target_compile_warn_error(FreeCADGui)
1558 endif()
1559
1560 SET_BIN_DIR(FreeCADGui FreeCADGui)
1561
1562 if(WIN32)
1563 INSTALL(TARGETS FreeCADGui
1564 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1565 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1566 )
1567 else(WIN32)
1568 INSTALL(TARGETS FreeCADGui
1569 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1570 )
1571 INSTALL(FILES Icons/freecad-icon-16.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/16x16/apps RENAME org.freecad.FreeCAD.png)
1572 INSTALL(FILES Icons/freecad-icon-32.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/32x32/apps RENAME org.freecad.FreeCAD.png)
1573 INSTALL(FILES Icons/freecad-icon-48.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/48x48/apps RENAME org.freecad.FreeCAD.png)
1574 INSTALL(FILES Icons/freecad-icon-64.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/64x64/apps RENAME org.freecad.FreeCAD.png)
1575 INSTALL(FILES Icons/freecad.svg DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps RENAME org.freecad.FreeCAD.svg)
1576 INSTALL(FILES Icons/freecad.svg DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pixmaps)
1577 INSTALL(FILES Icons/freecad-doc.svg DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/mimetypes RENAME application-x-extension-fcstd.svg)
1578 endif(WIN32)
1579
1580 set(FreeCADGui_Scripts
1581 RemoteDebugger.ui
1582 RemoteDebugger.py
1583 )
1584
1585 set(FreeCADGui_Configs
1586 3Dconnexion/3DConnexion.xml
1587 )
1588
1589 add_custom_target(FreeCADGui_Resources ALL
1590 SOURCES ${FreeCADGui_Scripts} ${FreeCADGui_Configs}
1591 )
1592
1593 fc_copy_sources(FreeCADGui_Resources
1594 ${CMAKE_BINARY_DIR}/Ext/freecad/gui
1595 ${FreeCADGui_Scripts}
1596 )
1597
1598 fc_target_copy_resource(FreeCADGui_Resources
1599 ${CMAKE_CURRENT_SOURCE_DIR}
1600 ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}
1601 ${FreeCADGui_Configs}
1602 )
1603
1604 INSTALL(
1605 FILES
1606 ${FreeCADGui_Scripts}
1607 DESTINATION
1608 Ext/freecad/gui
1609 )
1610
1611 INSTALL(
1612 FILES
1613 ${FreeCADGui_Configs}
1614 DESTINATION
1615 ${CMAKE_INSTALL_DATADIR}/3Dconnexion
1616 )