11cmake_minimum_required (VERSION 3.12)
22project (ConstraintGeometry VERSION 0.1 LANGUAGES CXX)
33
4- set (CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON )
5-
6- file (GLOB_RECURSE HEADER_FILES "src/*.h" "src/*.inl" )
7- file (GLOB_RECURSE SOURCE_FILES "src/*.cpp" )
8- file (GLOB_RECURSE SCENES_FILES "scenes/*.scn" "*.xml" )
9- file (GLOB_RECURSE IGNORED_FILES "ignored/*.h" "ignored/*.inl" "ignored/*.cpp" )
10- file (GLOB_RECURSE DEPRECATED_FILES "deprecated/*.h" "deprecated/*.inl" "deprecated/*.cpp" )
11-
124find_package (CollisionAlgorithm REQUIRED)
135find_package (Sofa.Component .StateContainer REQUIRED)
146find_package (Sofa.Component .Constraint.Lagrangian.Solver REQUIRED)
157find_package (Sofa.GL REQUIRED)
168
17- #include_directories("${CMAKE_CURRENT_SOURCE_DIR}/ignored")
18- #include_directories("${CMAKE_CURRENT_SOURCE_DIR}/deprecated")
9+ set (CONSTRAINTGEOMETRY_SRC "src/${PROJECT_NAME} " )
10+
11+ set (HEADER_FILES
12+ ${CONSTRAINTGEOMETRY_SRC} /config.h.in
13+ ${CONSTRAINTGEOMETRY_SRC} /initConstraintGeometry.h
14+
15+ ${CONSTRAINTGEOMETRY_SRC} /BaseConstraint.h
16+ ${CONSTRAINTGEOMETRY_SRC} /BaseNormalHandler.h
17+ ${CONSTRAINTGEOMETRY_SRC} /ConstraintDirection.h
18+ ${CONSTRAINTGEOMETRY_SRC} /ConstraintNormal.h
19+ ${CONSTRAINTGEOMETRY_SRC} /ConstraintProximity.h
20+ ${CONSTRAINTGEOMETRY_SRC} /ConstraintResponse.h
21+ ${CONSTRAINTGEOMETRY_SRC} /InternalConstraint.h
22+
23+ ${CONSTRAINTGEOMETRY_SRC} /constraint/BilateralResolution.h
24+ ${CONSTRAINTGEOMETRY_SRC} /constraint/ConstraintBilateral.h
25+ ${CONSTRAINTGEOMETRY_SRC} /constraint/ConstraintInsertion.h
26+ ${CONSTRAINTGEOMETRY_SRC} /constraint/ConstraintUnilateral.h
27+ ${CONSTRAINTGEOMETRY_SRC} /constraint/InsertionResolution.h
28+ ${CONSTRAINTGEOMETRY_SRC} /constraint/UnilateralResolution.h
29+
30+ ${CONSTRAINTGEOMETRY_SRC} /directions/BindDirection.h
31+ ${CONSTRAINTGEOMETRY_SRC} /directions/ContactDirection.h
32+ ${CONSTRAINTGEOMETRY_SRC} /directions/FirstDirection.h
33+ ${CONSTRAINTGEOMETRY_SRC} /directions/FixedFrameDirection.h
34+ ${CONSTRAINTGEOMETRY_SRC} /directions/SecondDirection.h
35+
36+ ${CONSTRAINTGEOMETRY_SRC} /normalHandler/EdgeNormalHandler.h
37+ ${CONSTRAINTGEOMETRY_SRC} /normalHandler/GouraudTriangleNormalHandler.h
38+ ${CONSTRAINTGEOMETRY_SRC} /normalHandler/GravityPointNormalHandler.h
39+ ${CONSTRAINTGEOMETRY_SRC} /normalHandler/PhongTriangleNormalHandler.h
40+ ${CONSTRAINTGEOMETRY_SRC} /normalHandler/VectorPointNormalHandler.h
1941
20- set_source_files_properties (${IGNORED_FILES} PROPERTIES HEADER_FILE_ONLY TRUE )
42+ ${CONSTRAINTGEOMETRY_SRC} /operations/ConstraintProximityOperation.h
43+ )
44+
45+ set (SOURCE_FILES
46+ ${CONSTRAINTGEOMETRY_SRC} /initConstraintGeometry.cpp
47+
48+ ${CONSTRAINTGEOMETRY_SRC} /constraint/ConstraintInsertion.cpp
49+ ${CONSTRAINTGEOMETRY_SRC} /constraint/ConstraintBilateral.cpp
50+ ${CONSTRAINTGEOMETRY_SRC} /constraint/ConstraintUnilateral.cpp
51+
52+ ${CONSTRAINTGEOMETRY_SRC} /directions/BindDirection.cpp
53+ ${CONSTRAINTGEOMETRY_SRC} /directions/ContactDirection.cpp
54+ ${CONSTRAINTGEOMETRY_SRC} /directions/FirstDirection.cpp
55+ ${CONSTRAINTGEOMETRY_SRC} /directions/FixedFrameDirection.cpp
56+ ${CONSTRAINTGEOMETRY_SRC} /directions/SecondDirection.cpp
57+
58+ ${CONSTRAINTGEOMETRY_SRC} /normalHandler/EdgeNormalHandler.cpp
59+ ${CONSTRAINTGEOMETRY_SRC} /normalHandler/GouraudTriangleNormalHandler.cpp
60+ ${CONSTRAINTGEOMETRY_SRC} /normalHandler/GravityPointNormalHandler.cpp
61+ ${CONSTRAINTGEOMETRY_SRC} /normalHandler/PhongTriangleNormalHandler.cpp
62+ ${CONSTRAINTGEOMETRY_SRC} /normalHandler/VectorPointNormalHandler.cpp
63+ )
2164
2265add_library (${PROJECT_NAME} SHARED ${SOURCE_FILES} ${HEADER_FILES} ${README_FILES} )
2366
@@ -34,4 +77,6 @@ sofa_create_package_with_targets(
3477 TARGETS ${PROJECT_NAME} AUTO_SET_TARGET_PROPERTIES
3578 INCLUDE_SOURCE_DIR "src"
3679 INCLUDE_INSTALL_DIR ${PROJECT_NAME}
80+ EXAMPLE_INSTALL_DIR "scenes"
81+ RELOCATABLE "plugins"
3782)
0 commit comments