2019-12-11 11:24:21 +00:00
|
|
|
cmake_minimum_required(VERSION 3.8)
|
2018-10-29 15:01:26 +00:00
|
|
|
project(libslic3r_gui)
|
|
|
|
|
|
|
|
include(PrecompiledHeader)
|
|
|
|
|
2019-01-24 10:30:29 +00:00
|
|
|
set(SLIC3R_GUI_SOURCES
|
2018-10-29 15:01:26 +00:00
|
|
|
pchheader.cpp
|
|
|
|
pchheader.hpp
|
|
|
|
GUI/AboutDialog.cpp
|
|
|
|
GUI/AboutDialog.hpp
|
|
|
|
GUI/SysInfoDialog.cpp
|
|
|
|
GUI/SysInfoDialog.hpp
|
2018-12-19 12:06:24 +00:00
|
|
|
GUI/KBShortcutsDialog.cpp
|
|
|
|
GUI/KBShortcutsDialog.hpp
|
2018-10-29 15:01:26 +00:00
|
|
|
GUI/AppConfig.cpp
|
|
|
|
GUI/AppConfig.hpp
|
|
|
|
GUI/BackgroundSlicingProcess.cpp
|
|
|
|
GUI/BackgroundSlicingProcess.hpp
|
|
|
|
GUI/BitmapCache.cpp
|
|
|
|
GUI/BitmapCache.hpp
|
|
|
|
GUI/ConfigSnapshotDialog.cpp
|
|
|
|
GUI/ConfigSnapshotDialog.hpp
|
|
|
|
GUI/3DScene.cpp
|
|
|
|
GUI/3DScene.hpp
|
|
|
|
GUI/GLShader.cpp
|
|
|
|
GUI/GLShader.hpp
|
|
|
|
GUI/GLCanvas3D.hpp
|
|
|
|
GUI/GLCanvas3D.cpp
|
|
|
|
GUI/GLCanvas3DManager.hpp
|
|
|
|
GUI/GLCanvas3DManager.cpp
|
2019-03-19 12:30:21 +00:00
|
|
|
GUI/Selection.hpp
|
|
|
|
GUI/Selection.cpp
|
2019-03-20 12:51:25 +00:00
|
|
|
GUI/Gizmos/GLGizmos.hpp
|
|
|
|
GUI/Gizmos/GLGizmosManager.cpp
|
|
|
|
GUI/Gizmos/GLGizmosManager.hpp
|
2019-03-15 11:53:15 +00:00
|
|
|
GUI/Gizmos/GLGizmoBase.cpp
|
|
|
|
GUI/Gizmos/GLGizmoBase.hpp
|
|
|
|
GUI/Gizmos/GLGizmoMove.cpp
|
|
|
|
GUI/Gizmos/GLGizmoMove.hpp
|
|
|
|
GUI/Gizmos/GLGizmoRotate.cpp
|
|
|
|
GUI/Gizmos/GLGizmoRotate.hpp
|
|
|
|
GUI/Gizmos/GLGizmoScale.cpp
|
|
|
|
GUI/Gizmos/GLGizmoScale.hpp
|
|
|
|
GUI/Gizmos/GLGizmoSlaSupports.cpp
|
|
|
|
GUI/Gizmos/GLGizmoSlaSupports.hpp
|
|
|
|
GUI/Gizmos/GLGizmoFlatten.cpp
|
|
|
|
GUI/Gizmos/GLGizmoFlatten.hpp
|
|
|
|
GUI/Gizmos/GLGizmoCut.cpp
|
|
|
|
GUI/Gizmos/GLGizmoCut.hpp
|
2019-11-04 16:01:26 +00:00
|
|
|
GUI/Gizmos/GLGizmoHollow.cpp
|
|
|
|
GUI/Gizmos/GLGizmoHollow.hpp
|
2019-04-18 07:59:17 +00:00
|
|
|
GUI/GLSelectionRectangle.cpp
|
|
|
|
GUI/GLSelectionRectangle.hpp
|
2018-10-29 15:01:26 +00:00
|
|
|
GUI/GLTexture.hpp
|
|
|
|
GUI/GLTexture.cpp
|
|
|
|
GUI/GLToolbar.hpp
|
|
|
|
GUI/GLToolbar.cpp
|
|
|
|
GUI/Preferences.cpp
|
|
|
|
GUI/Preferences.hpp
|
|
|
|
GUI/Preset.cpp
|
|
|
|
GUI/Preset.hpp
|
|
|
|
GUI/PresetBundle.cpp
|
|
|
|
GUI/PresetBundle.hpp
|
|
|
|
GUI/PresetHints.cpp
|
|
|
|
GUI/PresetHints.hpp
|
|
|
|
GUI/GUI.cpp
|
|
|
|
GUI/GUI.hpp
|
|
|
|
GUI/GUI_Preview.cpp
|
|
|
|
GUI/GUI_Preview.hpp
|
|
|
|
GUI/GUI_App.cpp
|
|
|
|
GUI/GUI_App.hpp
|
|
|
|
GUI/GUI_Utils.cpp
|
|
|
|
GUI/GUI_Utils.hpp
|
2018-11-26 13:41:58 +00:00
|
|
|
GUI/I18N.cpp
|
|
|
|
GUI/I18N.hpp
|
2018-10-29 15:01:26 +00:00
|
|
|
GUI/MainFrame.cpp
|
|
|
|
GUI/MainFrame.hpp
|
|
|
|
GUI/Plater.cpp
|
|
|
|
GUI/Plater.hpp
|
|
|
|
GUI/GUI_ObjectList.cpp
|
|
|
|
GUI/GUI_ObjectList.hpp
|
|
|
|
GUI/GUI_ObjectManipulation.cpp
|
|
|
|
GUI/GUI_ObjectManipulation.hpp
|
2018-11-12 07:14:42 +00:00
|
|
|
GUI/GUI_ObjectSettings.cpp
|
|
|
|
GUI/GUI_ObjectSettings.hpp
|
2019-05-30 11:08:05 +00:00
|
|
|
GUI/GUI_ObjectLayers.cpp
|
|
|
|
GUI/GUI_ObjectLayers.hpp
|
2018-10-29 15:01:26 +00:00
|
|
|
GUI/LambdaObjectDialog.cpp
|
|
|
|
GUI/LambdaObjectDialog.hpp
|
2019-09-13 09:30:50 +00:00
|
|
|
GUI/MeshUtils.cpp
|
|
|
|
GUI/MeshUtils.hpp
|
2018-10-29 15:01:26 +00:00
|
|
|
GUI/Tab.cpp
|
|
|
|
GUI/Tab.hpp
|
2019-08-22 11:19:01 +00:00
|
|
|
GUI/ConfigManipulation.cpp
|
|
|
|
GUI/ConfigManipulation.hpp
|
2018-10-29 15:01:26 +00:00
|
|
|
GUI/Field.cpp
|
|
|
|
GUI/Field.hpp
|
|
|
|
GUI/OptionsGroup.cpp
|
|
|
|
GUI/OptionsGroup.hpp
|
|
|
|
GUI/BedShapeDialog.cpp
|
|
|
|
GUI/BedShapeDialog.hpp
|
|
|
|
GUI/2DBed.cpp
|
|
|
|
GUI/2DBed.hpp
|
2019-02-19 14:15:27 +00:00
|
|
|
GUI/3DBed.cpp
|
|
|
|
GUI/3DBed.hpp
|
2019-03-06 14:46:19 +00:00
|
|
|
GUI/Camera.cpp
|
|
|
|
GUI/Camera.hpp
|
2018-10-29 15:01:26 +00:00
|
|
|
GUI/wxExtensions.cpp
|
|
|
|
GUI/wxExtensions.hpp
|
2019-10-18 10:35:35 +00:00
|
|
|
GUI/ExtruderSequenceDialog.cpp
|
|
|
|
GUI/ExtruderSequenceDialog.hpp
|
2018-10-29 15:01:26 +00:00
|
|
|
GUI/WipeTowerDialog.cpp
|
|
|
|
GUI/WipeTowerDialog.hpp
|
|
|
|
GUI/RammingChart.cpp
|
|
|
|
GUI/RammingChart.hpp
|
2019-11-26 14:52:18 +00:00
|
|
|
GUI/RemovableDriveManager.cpp
|
|
|
|
GUI/RemovableDriveManager.hpp
|
2018-10-29 15:01:26 +00:00
|
|
|
GUI/BonjourDialog.cpp
|
|
|
|
GUI/BonjourDialog.hpp
|
|
|
|
GUI/ButtonsDescription.cpp
|
|
|
|
GUI/ButtonsDescription.hpp
|
2018-10-31 09:19:44 +00:00
|
|
|
GUI/ImGuiWrapper.hpp
|
|
|
|
GUI/ImGuiWrapper.cpp
|
2018-10-29 15:01:26 +00:00
|
|
|
Config/Snapshot.cpp
|
|
|
|
Config/Snapshot.hpp
|
|
|
|
Config/Version.cpp
|
|
|
|
Config/Version.hpp
|
|
|
|
Utils/ASCIIFolding.cpp
|
|
|
|
Utils/ASCIIFolding.hpp
|
|
|
|
Utils/Serial.cpp
|
|
|
|
Utils/Serial.hpp
|
|
|
|
GUI/ConfigWizard.cpp
|
|
|
|
GUI/ConfigWizard.hpp
|
2020-02-13 10:25:34 +00:00
|
|
|
GUI/ConfigWizard_private.hpp
|
2018-10-29 15:01:26 +00:00
|
|
|
GUI/MsgDialog.cpp
|
|
|
|
GUI/MsgDialog.hpp
|
|
|
|
GUI/UpdateDialogs.cpp
|
|
|
|
GUI/UpdateDialogs.hpp
|
|
|
|
GUI/FirmwareDialog.cpp
|
|
|
|
GUI/FirmwareDialog.hpp
|
|
|
|
GUI/ProgressIndicator.hpp
|
|
|
|
GUI/ProgressStatusBar.hpp
|
|
|
|
GUI/ProgressStatusBar.cpp
|
2018-12-11 09:33:11 +00:00
|
|
|
GUI/PrintHostDialogs.cpp
|
|
|
|
GUI/PrintHostDialogs.hpp
|
2019-12-16 08:47:31 +00:00
|
|
|
GUI/Job.hpp
|
2019-09-27 12:52:19 +00:00
|
|
|
GUI/Mouse3DController.cpp
|
|
|
|
GUI/Mouse3DController.hpp
|
2020-01-23 14:07:31 +00:00
|
|
|
GUI/DoubleSlider.cpp
|
|
|
|
GUI/DoubleSlider.hpp
|
2020-02-02 21:22:40 +00:00
|
|
|
GUI/ObjectDataViewModel.cpp
|
|
|
|
GUI/ObjectDataViewModel.hpp
|
2018-10-29 15:01:26 +00:00
|
|
|
Utils/Http.cpp
|
|
|
|
Utils/Http.hpp
|
|
|
|
Utils/FixModelByWin10.cpp
|
|
|
|
Utils/FixModelByWin10.hpp
|
|
|
|
Utils/OctoPrint.cpp
|
|
|
|
Utils/OctoPrint.hpp
|
|
|
|
Utils/Duet.cpp
|
|
|
|
Utils/Duet.hpp
|
2019-05-07 17:51:14 +00:00
|
|
|
Utils/FlashAir.cpp
|
|
|
|
Utils/FlashAir.hpp
|
2019-12-28 17:41:48 +00:00
|
|
|
Utils/AstroBox.cpp
|
|
|
|
Utils/AstroBox.hpp
|
2018-10-29 15:01:26 +00:00
|
|
|
Utils/PrintHost.cpp
|
|
|
|
Utils/PrintHost.hpp
|
|
|
|
Utils/Bonjour.cpp
|
|
|
|
Utils/Bonjour.hpp
|
|
|
|
Utils/PresetUpdater.cpp
|
|
|
|
Utils/PresetUpdater.hpp
|
2019-07-02 14:42:23 +00:00
|
|
|
Utils/UndoRedo.cpp
|
|
|
|
Utils/UndoRedo.hpp
|
2018-10-29 15:01:26 +00:00
|
|
|
Utils/HexFile.cpp
|
|
|
|
Utils/HexFile.hpp
|
2019-11-07 11:57:40 +00:00
|
|
|
Utils/Thread.hpp
|
2018-09-19 09:02:24 +00:00
|
|
|
)
|
|
|
|
|
2019-01-24 10:30:29 +00:00
|
|
|
if (APPLE)
|
2019-04-26 14:59:14 +00:00
|
|
|
list(APPEND SLIC3R_GUI_SOURCES
|
|
|
|
Utils/RetinaHelperImpl.mm
|
|
|
|
Utils/MacDarkMode.mm
|
2019-12-10 09:08:57 +00:00
|
|
|
GUI/RemovableDriveManagerMM.mm
|
|
|
|
GUI/RemovableDriveManagerMM.h
|
2020-01-21 13:34:22 +00:00
|
|
|
GUI/Mouse3DHandlerMac.mm
|
2019-04-26 14:59:14 +00:00
|
|
|
)
|
2019-12-17 12:08:17 +00:00
|
|
|
FIND_LIBRARY(DISKARBITRATION_LIBRARY DiskArbitration)
|
|
|
|
|
2019-01-24 10:30:29 +00:00
|
|
|
endif ()
|
|
|
|
|
|
|
|
add_library(libslic3r_gui STATIC ${SLIC3R_GUI_SOURCES})
|
|
|
|
|
2019-08-19 10:25:18 +00:00
|
|
|
encoding_check(libslic3r_gui)
|
|
|
|
|
2020-03-06 14:16:46 +00:00
|
|
|
target_link_libraries(libslic3r_gui libslic3r avrdude cereal imgui GLEW::GLEW OpenGL::GL OpenGL::GLU hidapi libcurl ${wxWidgets_LIBRARIES})
|
2020-01-22 09:03:58 +00:00
|
|
|
|
2019-12-17 12:08:17 +00:00
|
|
|
if(APPLE)
|
|
|
|
target_link_libraries(libslic3r_gui ${DISKARBITRATION_LIBRARY})
|
|
|
|
endif()
|
|
|
|
|
2020-03-25 11:27:10 +00:00
|
|
|
if (SLIC3R_STATIC AND UNIX AND NOT APPLE)
|
2020-03-25 08:38:51 +00:00
|
|
|
target_compile_definitions(libslic3r_gui PRIVATE OPENSSL_CERT_OVERRIDE)
|
|
|
|
endif ()
|
|
|
|
|
2019-01-11 11:24:25 +00:00
|
|
|
if (SLIC3R_PCH AND NOT SLIC3R_SYNTAXONLY)
|
2018-11-20 21:59:56 +00:00
|
|
|
add_precompiled_header(libslic3r_gui pchheader.hpp FORCEINCLUDE)
|
|
|
|
endif ()
|