dust3d/thirdparty/carve-1.4.0/lib/CMakeLists.txt

37 lines
1.1 KiB
CMake

include_directories("${carve_SOURCE_DIR}/include")
add_library(carve
aabb.cpp
carve.cpp
convex_hull.cpp
csg.cpp
csg_collector.cpp
edge.cpp
face.cpp
geom2d.cpp
geom3d.cpp
intersect.cpp
intersect_classify_edge.cpp
intersect_classify_group.cpp
intersect_debug.cpp
intersect_face_division.cpp
intersect_group.cpp
intersect_half_classify_group.cpp
intersection.cpp
math.cpp
octree.cpp
pointset.cpp
polyhedron.cpp
polyline.cpp
tag.cpp
timing.cpp
triangulator.cpp)
set_target_properties(carve PROPERTIES
VERSION "${carve_VERSION_MAJOR}.${carve_VERSION_MINOR}.${carve_VERSION_PATCH}"
SOVERSION "${carve_VERSION_MAJOR}.${carve_VERSION_MINOR}")
install(TARGETS carve
LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/lib"
ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")