mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-07 00:25:22 +00:00
Replaces Poly2Tri with updated code to process polygons faster and more robustly. Notably, we can now handle overlapping holes in the polygons, allowing us to cache the triangulation of complex boards
20 lines
403 B
CMake
20 lines
403 B
CMake
# .cpp files are compiled with extra ${WSHADOW_FLAGS}
|
|
if( COMPILER_SUPPORTS_WSHADOW )
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WSHADOW_FLAGS}")
|
|
endif()
|
|
|
|
include_directories(BEFORE ${INC_BEFORE})
|
|
include_directories(
|
|
${INC_AFTER}
|
|
)
|
|
|
|
set(POLYGON_SRCS
|
|
math_for_graphics.cpp
|
|
PolyLine.cpp
|
|
polygon_test_point_inside.cpp
|
|
clipper.cpp
|
|
)
|
|
|
|
add_library(polygon STATIC ${POLYGON_SRCS})
|
|
|