| 1 |
set( KIMATH_SRCS |
| 2 |
src/bezier_curves.cpp |
| 3 |
src/convert_basic_shapes_to_polygon.cpp |
| 4 |
src/md5_hash.cpp |
| 5 |
src/trigo.cpp |
| 6 |
|
| 7 |
src/geometry/circle.cpp |
| 8 |
src/geometry/convex_hull.cpp |
| 9 |
src/geometry/direction_45.cpp |
| 10 |
src/geometry/geometry_utils.cpp |
| 11 |
src/geometry/poly_grid_partition.cpp |
| 12 |
src/geometry/seg.cpp |
| 13 |
src/geometry/shape.cpp |
| 14 |
src/geometry/shape_arc.cpp |
| 15 |
src/geometry/shape_collisions.cpp |
| 16 |
src/geometry/shape_file_io.cpp |
| 17 |
src/geometry/shape_line_chain.cpp |
| 18 |
src/geometry/shape_poly_set.cpp |
| 19 |
src/geometry/shape_rect.cpp |
| 20 |
src/geometry/shape_compound.cpp |
| 21 |
src/geometry/shape_segment.cpp |
| 22 |
|
| 23 |
|
| 24 |
src/math/util.cpp |
| 25 |
) |
| 26 |
|
| 27 |
# Include the other smaller math libraries in this one for convenience |
| 28 |
add_library( kimath STATIC |
| 29 |
${KIMATH_SRCS} |
| 30 |
$<TARGET_OBJECTS:clipper> |
| 31 |
$<TARGET_OBJECTS:othermath> |
| 32 |
) |
| 33 |
|
| 34 |
add_dependencies( kimath clipper ) |
| 35 |
add_dependencies( kimath rtree ) |
| 36 |
add_dependencies( kimath othermath ) |
| 37 |
|
| 38 |
target_link_libraries( kimath |
| 39 |
${wxWidgets_LIBRARIES} # wxLogDebug, wxASSERT |
| 40 |
${Boost_LIBRARIES} # Because of the OPT types |
| 41 |
) |
| 42 |
|
| 43 |
target_include_directories( kimath PUBLIC |
| 44 |
${PROJECT_BINARY_DIR} |
| 45 |
${CMAKE_CURRENT_SOURCE_DIR}/include |
| 46 |
$<TARGET_PROPERTY:clipper,INTERFACE_INCLUDE_DIRECTORIES> |
| 47 |
$<TARGET_PROPERTY:othermath,INTERFACE_INCLUDE_DIRECTORIES> |
| 48 |
$<TARGET_PROPERTY:rtree,INTERFACE_INCLUDE_DIRECTORIES> |
| 49 |
) |
| 50 |
|
| 51 |
# optional is needed for OPT types |
| 52 |
target_include_directories( kimath PRIVATE |
| 53 |
${PROJECT_SOURCE_DIR}/include |
| 54 |
${wxWidgets_LIBRARIES} |
| 55 |
${Boost_INCLUDE_DIR} |
| 56 |
) |