Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/slic3r/CMakeLists.txt')
-rw-r--r--src/slic3r/CMakeLists.txt98
1 files changed, 81 insertions, 17 deletions
diff --git a/src/slic3r/CMakeLists.txt b/src/slic3r/CMakeLists.txt
index 5e0c34da0..e040de727 100644
--- a/src/slic3r/CMakeLists.txt
+++ b/src/slic3r/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.8)
+cmake_minimum_required(VERSION 3.13)
project(libslic3r_gui)
include(PrecompiledHeader)
@@ -12,8 +12,6 @@ set(SLIC3R_GUI_SOURCES
GUI/SysInfoDialog.hpp
GUI/KBShortcutsDialog.cpp
GUI/KBShortcutsDialog.hpp
- GUI/AppConfig.cpp
- GUI/AppConfig.hpp
GUI/BackgroundSlicingProcess.cpp
GUI/BackgroundSlicingProcess.hpp
GUI/BitmapCache.cpp
@@ -22,17 +20,21 @@ set(SLIC3R_GUI_SOURCES
GUI/ConfigSnapshotDialog.hpp
GUI/3DScene.cpp
GUI/3DScene.hpp
+ GUI/format.hpp
+ GUI/GLShadersManager.hpp
+ GUI/GLShadersManager.cpp
GUI/GLShader.cpp
GUI/GLShader.hpp
GUI/GLCanvas3D.hpp
GUI/GLCanvas3D.cpp
- GUI/GLCanvas3DManager.hpp
- GUI/GLCanvas3DManager.cpp
+ GUI/OpenGLManager.hpp
+ GUI/OpenGLManager.cpp
GUI/Selection.hpp
GUI/Selection.cpp
- GUI/Gizmos/GLGizmos.hpp
GUI/Gizmos/GLGizmosManager.cpp
GUI/Gizmos/GLGizmosManager.hpp
+ GUI/Gizmos/GLGizmosCommon.cpp
+ GUI/Gizmos/GLGizmosCommon.hpp
GUI/Gizmos/GLGizmoBase.cpp
GUI/Gizmos/GLGizmoBase.hpp
GUI/Gizmos/GLGizmoMove.cpp
@@ -43,28 +45,36 @@ set(SLIC3R_GUI_SOURCES
GUI/Gizmos/GLGizmoScale.hpp
GUI/Gizmos/GLGizmoSlaSupports.cpp
GUI/Gizmos/GLGizmoSlaSupports.hpp
+ GUI/Gizmos/GLGizmoFdmSupports.cpp
+ GUI/Gizmos/GLGizmoFdmSupports.hpp
GUI/Gizmos/GLGizmoFlatten.cpp
GUI/Gizmos/GLGizmoFlatten.hpp
GUI/Gizmos/GLGizmoCut.cpp
GUI/Gizmos/GLGizmoCut.hpp
GUI/Gizmos/GLGizmoHollow.cpp
GUI/Gizmos/GLGizmoHollow.hpp
+ GUI/Gizmos/GLGizmoPainterBase.cpp
+ GUI/Gizmos/GLGizmoPainterBase.hpp
+ GUI/Gizmos/GLGizmoSeam.cpp
+ GUI/Gizmos/GLGizmoSeam.hpp
GUI/GLSelectionRectangle.cpp
GUI/GLSelectionRectangle.hpp
+ GUI/GLModel.hpp
+ GUI/GLModel.cpp
GUI/GLTexture.hpp
GUI/GLTexture.cpp
GUI/GLToolbar.hpp
GUI/GLToolbar.cpp
+ GUI/GCodeViewer.hpp
+ GUI/GCodeViewer.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_Init.cpp
+ GUI/GUI_Init.hpp
GUI/GUI_Preview.cpp
GUI/GUI_Preview.hpp
GUI/GUI_App.cpp
@@ -77,6 +87,12 @@ set(SLIC3R_GUI_SOURCES
GUI/MainFrame.hpp
GUI/Plater.cpp
GUI/Plater.hpp
+ GUI/PresetComboBoxes.hpp
+ GUI/PresetComboBoxes.cpp
+ GUI/SavePresetDialog.hpp
+ GUI/SavePresetDialog.cpp
+ GUI/PhysicalPrinterDialog.hpp
+ GUI/PhysicalPrinterDialog.cpp
GUI/GUI_ObjectList.cpp
GUI/GUI_ObjectList.hpp
GUI/GUI_ObjectManipulation.cpp
@@ -85,8 +101,6 @@ set(SLIC3R_GUI_SOURCES
GUI/GUI_ObjectSettings.hpp
GUI/GUI_ObjectLayers.cpp
GUI/GUI_ObjectLayers.hpp
- GUI/LambdaObjectDialog.cpp
- GUI/LambdaObjectDialog.hpp
GUI/MeshUtils.cpp
GUI/MeshUtils.hpp
GUI/Tab.cpp
@@ -97,6 +111,8 @@ set(SLIC3R_GUI_SOURCES
GUI/Field.hpp
GUI/OptionsGroup.cpp
GUI/OptionsGroup.hpp
+ GUI/OG_CustomCtrl.cpp
+ GUI/OG_CustomCtrl.hpp
GUI/BedShapeDialog.cpp
GUI/BedShapeDialog.hpp
GUI/2DBed.cpp
@@ -138,18 +154,37 @@ set(SLIC3R_GUI_SOURCES
GUI/UpdateDialogs.hpp
GUI/FirmwareDialog.cpp
GUI/FirmwareDialog.hpp
- GUI/ProgressIndicator.hpp
- GUI/ProgressStatusBar.hpp
- GUI/ProgressStatusBar.cpp
GUI/PrintHostDialogs.cpp
GUI/PrintHostDialogs.hpp
- GUI/Job.hpp
+ GUI/Jobs/Job.hpp
+ GUI/Jobs/Job.cpp
+ GUI/Jobs/ArrangeJob.hpp
+ GUI/Jobs/ArrangeJob.cpp
+ GUI/Jobs/RotoptimizeJob.hpp
+ GUI/Jobs/RotoptimizeJob.cpp
+ GUI/Jobs/FillBedJob.hpp
+ GUI/Jobs/FillBedJob.cpp
+ GUI/Jobs/SLAImportJob.hpp
+ GUI/Jobs/SLAImportJob.cpp
+ GUI/Jobs/ProgressIndicator.hpp
+ GUI/ProgressStatusBar.hpp
+ GUI/ProgressStatusBar.cpp
GUI/Mouse3DController.cpp
GUI/Mouse3DController.hpp
GUI/DoubleSlider.cpp
GUI/DoubleSlider.hpp
GUI/ObjectDataViewModel.cpp
GUI/ObjectDataViewModel.hpp
+ GUI/InstanceCheck.cpp
+ GUI/InstanceCheck.hpp
+ GUI/Search.cpp
+ GUI/Search.hpp
+ GUI/NotificationManager.cpp
+ GUI/NotificationManager.hpp
+ GUI/UnsavedChangesDialog.cpp
+ GUI/UnsavedChangesDialog.hpp
+ GUI/ExtraRenderers.cpp
+ GUI/ExtraRenderers.hpp
Utils/Http.cpp
Utils/Http.hpp
Utils/FixModelByWin10.cpp
@@ -162,17 +197,21 @@ set(SLIC3R_GUI_SOURCES
Utils/FlashAir.hpp
Utils/AstroBox.cpp
Utils/AstroBox.hpp
+ Utils/Repetier.cpp
+ Utils/Repetier.hpp
Utils/PrintHost.cpp
Utils/PrintHost.hpp
Utils/Bonjour.cpp
Utils/Bonjour.hpp
Utils/PresetUpdater.cpp
Utils/PresetUpdater.hpp
+ Utils/Process.cpp
+ Utils/Process.hpp
+ Utils/Profile.hpp
Utils/UndoRedo.cpp
Utils/UndoRedo.hpp
Utils/HexFile.cpp
Utils/HexFile.hpp
- Utils/Thread.hpp
)
if (APPLE)
@@ -182,6 +221,8 @@ if (APPLE)
GUI/RemovableDriveManagerMM.mm
GUI/RemovableDriveManagerMM.h
GUI/Mouse3DHandlerMac.mm
+ GUI/InstanceCheckMac.mm
+ GUI/InstanceCheckMac.h
)
FIND_LIBRARY(DISKARBITRATION_LIBRARY DiskArbitration)
@@ -193,10 +234,33 @@ encoding_check(libslic3r_gui)
target_link_libraries(libslic3r_gui libslic3r avrdude cereal imgui GLEW::GLEW OpenGL::GL OpenGL::GLU hidapi libcurl ${wxWidgets_LIBRARIES})
+if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
+ target_link_libraries(libslic3r_gui ${DBUS_LIBRARIES})
+endif()
+
+if (SLIC3R_STATIC)
+ # FIXME: This was previously exported by wx-config but the wxWidgets
+ # cmake build forgets this and the build fails in debug mode (or on raspberry release)
+ target_compile_definitions(libslic3r_gui PUBLIC -DwxDEBUG_LEVEL=0)
+endif()
+
if(APPLE)
target_link_libraries(libslic3r_gui ${DISKARBITRATION_LIBRARY})
endif()
+if (SLIC3R_STATIC AND UNIX AND NOT APPLE)
+ target_compile_definitions(libslic3r_gui PRIVATE OPENSSL_CERT_OVERRIDE)
+endif ()
+
if (SLIC3R_PCH AND NOT SLIC3R_SYNTAXONLY)
add_precompiled_header(libslic3r_gui pchheader.hpp FORCEINCLUDE)
endif ()
+
+# We need to implement some hacks for wxWidgets and touch the underlying GTK
+# layer and sub-libraries. This forces us to use the include locations and
+# link these libraries.
+if (UNIX AND NOT APPLE)
+ find_package(GTK${SLIC3R_GTK} REQUIRED)
+ target_include_directories(libslic3r_gui PRIVATE ${GTK${SLIC3R_GTK}_INCLUDE_DIRS})
+ target_link_libraries(libslic3r_gui ${GTK${SLIC3R_GTK}_LIBRARIES})
+endif ()