diff --git a/CMakeLists.txt b/CMakeLists.txt index e203862..8f6d13a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,30 +1,32 @@ cmake_minimum_required(VERSION 3.12) project(ManifoldTopologies VERSION 0.1) +set(MANIFOLDTOPOLOGIES_SRC "src/ManifoldTopologies") + set(HEADER_FILES - ManifoldEdgeSetGeometryAlgorithms.h - ManifoldEdgeSetGeometryAlgorithms.inl - ManifoldEdgeSetTopologyContainer.h - ManifoldEdgeSetTopologyModifier.h - ManifoldTetrahedronSetTopologyContainer.h - ManifoldTopologyObject_double.h - ManifoldTopologyObject_float.h - ManifoldTriangleSetGeometryAlgorithms.h - ManifoldTriangleSetGeometryAlgorithms.inl - ManifoldTriangleSetTopologyContainer.h - ManifoldTriangleSetTopologyModifier.h - config.h + ${MANIFOLDTOPOLOGIES_SRC}/ManifoldEdgeSetGeometryAlgorithms.h + ${MANIFOLDTOPOLOGIES_SRC}/ManifoldEdgeSetGeometryAlgorithms.inl + ${MANIFOLDTOPOLOGIES_SRC}/ManifoldEdgeSetTopologyContainer.h + ${MANIFOLDTOPOLOGIES_SRC}/ManifoldEdgeSetTopologyModifier.h + ${MANIFOLDTOPOLOGIES_SRC}/ManifoldTetrahedronSetTopologyContainer.h + ${MANIFOLDTOPOLOGIES_SRC}/ManifoldTopologyObject_double.h + ${MANIFOLDTOPOLOGIES_SRC}/ManifoldTopologyObject_float.h + ${MANIFOLDTOPOLOGIES_SRC}/ManifoldTriangleSetGeometryAlgorithms.h + ${MANIFOLDTOPOLOGIES_SRC}/ManifoldTriangleSetGeometryAlgorithms.inl + ${MANIFOLDTOPOLOGIES_SRC}/ManifoldTriangleSetTopologyContainer.h + ${MANIFOLDTOPOLOGIES_SRC}/ManifoldTriangleSetTopologyModifier.h + ${MANIFOLDTOPOLOGIES_SRC}/config.h ) set(SOURCE_FILES - ManifoldEdgeSetGeometryAlgorithms.cpp - ManifoldEdgeSetTopologyContainer.cpp - ManifoldEdgeSetTopologyModifier.cpp - ManifoldTetrahedronSetTopologyContainer.cpp - ManifoldTriangleSetGeometryAlgorithms.cpp - ManifoldTriangleSetTopologyContainer.cpp - ManifoldTriangleSetTopologyModifier.cpp - initManifoldTopologies.cpp + ${MANIFOLDTOPOLOGIES_SRC}/ManifoldEdgeSetGeometryAlgorithms.cpp + ${MANIFOLDTOPOLOGIES_SRC}/ManifoldEdgeSetTopologyContainer.cpp + ${MANIFOLDTOPOLOGIES_SRC}/ManifoldEdgeSetTopologyModifier.cpp + ${MANIFOLDTOPOLOGIES_SRC}/ManifoldTetrahedronSetTopologyContainer.cpp + ${MANIFOLDTOPOLOGIES_SRC}/ManifoldTriangleSetGeometryAlgorithms.cpp + ${MANIFOLDTOPOLOGIES_SRC}/ManifoldTriangleSetTopologyContainer.cpp + ${MANIFOLDTOPOLOGIES_SRC}/ManifoldTriangleSetTopologyModifier.cpp + ${MANIFOLDTOPOLOGIES_SRC}/initManifoldTopologies.cpp ) find_package(SofaBase REQUIRED) @@ -36,5 +38,6 @@ sofa_create_package_with_targets( PACKAGE_NAME ${PROJECT_NAME} PACKAGE_VERSION ${PROJECT_VERSION} TARGETS ${PROJECT_NAME} AUTO_SET_TARGET_PROPERTIES + INCLUDE_SOURCE_DIR "src" RELOCATABLE "plugins" ) diff --git a/ManifoldEdgeSetGeometryAlgorithms.cpp b/src/ManifoldTopologies/ManifoldEdgeSetGeometryAlgorithms.cpp similarity index 100% rename from ManifoldEdgeSetGeometryAlgorithms.cpp rename to src/ManifoldTopologies/ManifoldEdgeSetGeometryAlgorithms.cpp diff --git a/ManifoldEdgeSetGeometryAlgorithms.h b/src/ManifoldTopologies/ManifoldEdgeSetGeometryAlgorithms.h similarity index 100% rename from ManifoldEdgeSetGeometryAlgorithms.h rename to src/ManifoldTopologies/ManifoldEdgeSetGeometryAlgorithms.h diff --git a/ManifoldEdgeSetGeometryAlgorithms.inl b/src/ManifoldTopologies/ManifoldEdgeSetGeometryAlgorithms.inl similarity index 100% rename from ManifoldEdgeSetGeometryAlgorithms.inl rename to src/ManifoldTopologies/ManifoldEdgeSetGeometryAlgorithms.inl diff --git a/ManifoldEdgeSetTopologyContainer.cpp b/src/ManifoldTopologies/ManifoldEdgeSetTopologyContainer.cpp similarity index 100% rename from ManifoldEdgeSetTopologyContainer.cpp rename to src/ManifoldTopologies/ManifoldEdgeSetTopologyContainer.cpp diff --git a/ManifoldEdgeSetTopologyContainer.h b/src/ManifoldTopologies/ManifoldEdgeSetTopologyContainer.h similarity index 100% rename from ManifoldEdgeSetTopologyContainer.h rename to src/ManifoldTopologies/ManifoldEdgeSetTopologyContainer.h diff --git a/ManifoldEdgeSetTopologyModifier.cpp b/src/ManifoldTopologies/ManifoldEdgeSetTopologyModifier.cpp similarity index 100% rename from ManifoldEdgeSetTopologyModifier.cpp rename to src/ManifoldTopologies/ManifoldEdgeSetTopologyModifier.cpp diff --git a/ManifoldEdgeSetTopologyModifier.h b/src/ManifoldTopologies/ManifoldEdgeSetTopologyModifier.h similarity index 100% rename from ManifoldEdgeSetTopologyModifier.h rename to src/ManifoldTopologies/ManifoldEdgeSetTopologyModifier.h diff --git a/ManifoldTetrahedronSetTopologyContainer.cpp b/src/ManifoldTopologies/ManifoldTetrahedronSetTopologyContainer.cpp similarity index 100% rename from ManifoldTetrahedronSetTopologyContainer.cpp rename to src/ManifoldTopologies/ManifoldTetrahedronSetTopologyContainer.cpp diff --git a/ManifoldTetrahedronSetTopologyContainer.h b/src/ManifoldTopologies/ManifoldTetrahedronSetTopologyContainer.h similarity index 100% rename from ManifoldTetrahedronSetTopologyContainer.h rename to src/ManifoldTopologies/ManifoldTetrahedronSetTopologyContainer.h diff --git a/ManifoldTopologyObject_double.h b/src/ManifoldTopologies/ManifoldTopologyObject_double.h similarity index 100% rename from ManifoldTopologyObject_double.h rename to src/ManifoldTopologies/ManifoldTopologyObject_double.h diff --git a/ManifoldTopologyObject_float.h b/src/ManifoldTopologies/ManifoldTopologyObject_float.h similarity index 100% rename from ManifoldTopologyObject_float.h rename to src/ManifoldTopologies/ManifoldTopologyObject_float.h diff --git a/ManifoldTriangleSetGeometryAlgorithms.cpp b/src/ManifoldTopologies/ManifoldTriangleSetGeometryAlgorithms.cpp similarity index 100% rename from ManifoldTriangleSetGeometryAlgorithms.cpp rename to src/ManifoldTopologies/ManifoldTriangleSetGeometryAlgorithms.cpp diff --git a/ManifoldTriangleSetGeometryAlgorithms.h b/src/ManifoldTopologies/ManifoldTriangleSetGeometryAlgorithms.h similarity index 100% rename from ManifoldTriangleSetGeometryAlgorithms.h rename to src/ManifoldTopologies/ManifoldTriangleSetGeometryAlgorithms.h diff --git a/ManifoldTriangleSetGeometryAlgorithms.inl b/src/ManifoldTopologies/ManifoldTriangleSetGeometryAlgorithms.inl similarity index 100% rename from ManifoldTriangleSetGeometryAlgorithms.inl rename to src/ManifoldTopologies/ManifoldTriangleSetGeometryAlgorithms.inl diff --git a/ManifoldTriangleSetTopologyContainer.cpp b/src/ManifoldTopologies/ManifoldTriangleSetTopologyContainer.cpp similarity index 100% rename from ManifoldTriangleSetTopologyContainer.cpp rename to src/ManifoldTopologies/ManifoldTriangleSetTopologyContainer.cpp diff --git a/ManifoldTriangleSetTopologyContainer.h b/src/ManifoldTopologies/ManifoldTriangleSetTopologyContainer.h similarity index 100% rename from ManifoldTriangleSetTopologyContainer.h rename to src/ManifoldTopologies/ManifoldTriangleSetTopologyContainer.h diff --git a/ManifoldTriangleSetTopologyModifier.cpp b/src/ManifoldTopologies/ManifoldTriangleSetTopologyModifier.cpp similarity index 100% rename from ManifoldTriangleSetTopologyModifier.cpp rename to src/ManifoldTopologies/ManifoldTriangleSetTopologyModifier.cpp diff --git a/ManifoldTriangleSetTopologyModifier.h b/src/ManifoldTopologies/ManifoldTriangleSetTopologyModifier.h similarity index 100% rename from ManifoldTriangleSetTopologyModifier.h rename to src/ManifoldTopologies/ManifoldTriangleSetTopologyModifier.h diff --git a/config.h b/src/ManifoldTopologies/config.h similarity index 100% rename from config.h rename to src/ManifoldTopologies/config.h diff --git a/initManifoldTopologies.cpp b/src/ManifoldTopologies/initManifoldTopologies.cpp similarity index 100% rename from initManifoldTopologies.cpp rename to src/ManifoldTopologies/initManifoldTopologies.cpp