mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-31 00:52:51 +00:00
Working arrange_objects with DJD selection heuristic and a bottom-left placement strategy.
This commit is contained in:
@@ -679,6 +679,35 @@ add_custom_target(pot
|
||||
COMMENT "Generate pot file from strings in the source tree"
|
||||
)
|
||||
|
||||
# ##############################################################################
|
||||
# Adding libnest2d project for bin packing...
|
||||
# ##############################################################################
|
||||
|
||||
set(LIBNEST2D_UNITTESTS ON CACHE BOOL "Force generating unittests for libnest2d")
|
||||
|
||||
if(LIBNEST2D_UNITTESTS)
|
||||
# If we want the libnest2d unit tests we need to build and executable with
|
||||
# all the libslic3r dependencies. This is needed because the clipper library
|
||||
# in the slic3r project is hacked so that it depends on the slic3r sources.
|
||||
# Unfortunately, this implies that the test executable is also dependent on
|
||||
# the libslic3r target.
|
||||
|
||||
# add_library(libslic3r_standalone STATIC ${LIBDIR}/libslic3r/utils.cpp)
|
||||
# set(LIBNEST2D_TEST_LIBRARIES
|
||||
# libslic3r libslic3r_standalone nowide libslic3r_gui admesh miniz
|
||||
# ${Boost_LIBRARIES} clipper ${EXPAT_LIBRARIES} ${GLEW_LIBRARIES}
|
||||
# polypartition poly2tri ${TBB_LIBRARIES} ${wxWidgets_LIBRARIES}
|
||||
# ${CURL_LIBRARIES}
|
||||
# )
|
||||
endif()
|
||||
|
||||
add_subdirectory(${LIBDIR}/libnest2d)
|
||||
target_include_directories(libslic3r PUBLIC BEFORE ${LIBNEST2D_INCLUDES})
|
||||
|
||||
# Add the binpack2d main sources and link them to libslic3r
|
||||
target_link_libraries(libslic3r libnest2d)
|
||||
# ##############################################################################
|
||||
|
||||
# Installation
|
||||
install(TARGETS XS DESTINATION ${PERL_VENDORARCH}/auto/Slic3r/XS)
|
||||
install(FILES lib/Slic3r/XS.pm DESTINATION ${PERL_VENDORLIB}/Slic3r)
|
||||
|
||||
Reference in New Issue
Block a user