We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
libnest2d_js
1 parent 41a7b7a commit 89ecdd0Copy full SHA for 89ecdd0
libnest2d_js/CMakeLists.txt
@@ -7,12 +7,19 @@ add_library(libnest2d_js STATIC libnest2d_js.cpp)
7
# Emscripten bindings
8
set_target_properties(libnest2d_js PROPERTIES LINK_FLAGS "--bind")
9
10
+# Find Clipper library (required for polyclipping/clipper.hpp)
11
+find_package(clipper REQUIRED)
12
+
13
# Include directories
14
target_include_directories(libnest2d_js PRIVATE
15
${CMAKE_CURRENT_SOURCE_DIR}/../include
16
${CMAKE_CURRENT_SOURCE_DIR}/../src
17
+ ${clipper_INCLUDE_DIRS}
18
)
19
20
+# Link Clipper library
21
+target_link_libraries(libnest2d_js PRIVATE clipper)
22
23
# Define backend macro for Emscripten
24
target_compile_definitions(libnest2d_js PRIVATE LIBNEST2D_GEOMETRIES_clipper)
25
0 commit comments