2020-01-07 17:12:59 +00:00
|
|
|
set( KIMATH_SRCS
|
|
|
|
src/bezier_curves.cpp
|
|
|
|
src/convert_basic_shapes_to_polygon.cpp
|
|
|
|
src/md5_hash.cpp
|
|
|
|
src/trigo.cpp
|
|
|
|
|
2022-01-15 01:12:24 +00:00
|
|
|
src/geometry/eda_angle.cpp
|
2021-01-03 01:21:20 +00:00
|
|
|
src/geometry/circle.cpp
|
2020-01-07 17:12:59 +00:00
|
|
|
src/geometry/convex_hull.cpp
|
2019-05-17 00:13:21 +00:00
|
|
|
src/geometry/direction_45.cpp
|
2020-01-07 17:12:59 +00:00
|
|
|
src/geometry/geometry_utils.cpp
|
2021-06-02 22:31:17 +00:00
|
|
|
src/geometry/poly_grid_partition.cpp
|
2020-01-07 17:12:59 +00:00
|
|
|
src/geometry/seg.cpp
|
|
|
|
src/geometry/shape.cpp
|
|
|
|
src/geometry/shape_arc.cpp
|
|
|
|
src/geometry/shape_collisions.cpp
|
|
|
|
src/geometry/shape_file_io.cpp
|
|
|
|
src/geometry/shape_line_chain.cpp
|
|
|
|
src/geometry/shape_poly_set.cpp
|
2020-07-03 15:12:28 +00:00
|
|
|
src/geometry/shape_rect.cpp
|
2020-07-15 16:22:16 +00:00
|
|
|
src/geometry/shape_compound.cpp
|
2020-10-07 13:15:16 +00:00
|
|
|
src/geometry/shape_segment.cpp
|
2021-01-07 18:36:06 +00:00
|
|
|
|
|
|
|
|
2022-01-02 01:28:28 +00:00
|
|
|
src/math/vector2.cpp
|
2021-01-07 18:36:06 +00:00
|
|
|
src/math/util.cpp
|
2020-01-07 17:12:59 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# Include the other smaller math libraries in this one for convenience
|
|
|
|
add_library( kimath STATIC
|
|
|
|
${KIMATH_SRCS}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries( kimath
|
2022-01-02 02:21:49 +00:00
|
|
|
clipper
|
|
|
|
othermath
|
|
|
|
rtree
|
2020-01-07 17:12:59 +00:00
|
|
|
${wxWidgets_LIBRARIES} # wxLogDebug, wxASSERT
|
|
|
|
${Boost_LIBRARIES} # Because of the OPT types
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories( kimath PUBLIC
|
2020-07-03 01:59:19 +00:00
|
|
|
${PROJECT_BINARY_DIR}
|
2020-01-07 17:12:59 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
|
|
)
|
|
|
|
|
|
|
|
# core/optional.h is needed for OPT types
|
|
|
|
target_include_directories( kimath PRIVATE
|
|
|
|
${PROJECT_SOURCE_DIR}/include
|
|
|
|
${wxWidgets_LIBRARIES}
|
|
|
|
${Boost_INCLUDE_DIR}
|
|
|
|
)
|