mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-22 16:21:24 -06:00
Initial implementation of a CMake build system for the Slic3r XS module.
Based on https://github.com/CReimer/Slic3r/tree/makefile_pr Big thanks to @CReimer for his huge effort.
This commit is contained in:
parent
507f2ff45e
commit
5673205d2e
8 changed files with 716 additions and 2 deletions
|
@ -30,7 +30,8 @@
|
|||
** THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef SLIC3R_GUI
|
||||
#if 1
|
||||
// #ifdef SLIC3R_GUI
|
||||
|
||||
#include <GL/glew.h>
|
||||
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
#include <float.h>
|
||||
#include <unordered_map>
|
||||
|
||||
#ifdef SLIC3R_GUI
|
||||
#if 0
|
||||
// #ifdef SLIC3R_GUI
|
||||
#include <wx/image.h>
|
||||
#endif /* SLIC3R_GUI */
|
||||
|
||||
|
|
|
@ -49,8 +49,10 @@ Model Model::read_from_file(const std::string &input_file, bool add_default_inst
|
|||
else if (boost::algorithm::iends_with(input_file, ".amf") ||
|
||||
boost::algorithm::iends_with(input_file, ".amf.xml"))
|
||||
result = load_amf(input_file.c_str(), &model);
|
||||
#ifdef SLIC3R_PRUS
|
||||
else if (boost::algorithm::iends_with(input_file, ".prusa"))
|
||||
result = load_prus(input_file.c_str(), &model);
|
||||
#endif /* SLIC3R_PRUS */
|
||||
else
|
||||
throw std::runtime_error("Unknown file format. Input file must have .stl, .obj, .amf(.xml) or .prusa extension.");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue