-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
82 lines (67 loc) · 3.32 KB
/
CMakeLists.txt
File metadata and controls
82 lines (67 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
cmake_minimum_required(VERSION 3.12)
project(ConstraintGeometry VERSION 0.1 LANGUAGES CXX)
find_package(CollisionAlgorithm REQUIRED)
find_package(Sofa.Component.StateContainer REQUIRED)
find_package(Sofa.Component.Constraint.Lagrangian.Solver REQUIRED)
find_package(Sofa.GL REQUIRED)
set(CONSTRAINTGEOMETRY_SRC "src/${PROJECT_NAME}")
set(HEADER_FILES
${CONSTRAINTGEOMETRY_SRC}/config.h.in
${CONSTRAINTGEOMETRY_SRC}/initConstraintGeometry.h
${CONSTRAINTGEOMETRY_SRC}/BaseConstraint.h
${CONSTRAINTGEOMETRY_SRC}/BaseNormalHandler.h
${CONSTRAINTGEOMETRY_SRC}/ConstraintDirection.h
${CONSTRAINTGEOMETRY_SRC}/ConstraintNormal.h
${CONSTRAINTGEOMETRY_SRC}/ConstraintProximity.h
${CONSTRAINTGEOMETRY_SRC}/ConstraintResponse.h
${CONSTRAINTGEOMETRY_SRC}/InternalConstraint.h
${CONSTRAINTGEOMETRY_SRC}/constraint/BilateralResolution.h
${CONSTRAINTGEOMETRY_SRC}/constraint/ConstraintBilateral.h
${CONSTRAINTGEOMETRY_SRC}/constraint/ConstraintInsertion.h
${CONSTRAINTGEOMETRY_SRC}/constraint/ConstraintUnilateral.h
${CONSTRAINTGEOMETRY_SRC}/constraint/InsertionResolution.h
${CONSTRAINTGEOMETRY_SRC}/constraint/UnilateralResolution.h
${CONSTRAINTGEOMETRY_SRC}/directions/BindDirection.h
${CONSTRAINTGEOMETRY_SRC}/directions/ContactDirection.h
${CONSTRAINTGEOMETRY_SRC}/directions/FirstDirection.h
${CONSTRAINTGEOMETRY_SRC}/directions/FixedFrameDirection.h
${CONSTRAINTGEOMETRY_SRC}/directions/SecondDirection.h
${CONSTRAINTGEOMETRY_SRC}/normalHandler/EdgeNormalHandler.h
${CONSTRAINTGEOMETRY_SRC}/normalHandler/GouraudTriangleNormalHandler.h
${CONSTRAINTGEOMETRY_SRC}/normalHandler/GravityPointNormalHandler.h
${CONSTRAINTGEOMETRY_SRC}/normalHandler/PhongTriangleNormalHandler.h
${CONSTRAINTGEOMETRY_SRC}/normalHandler/VectorPointNormalHandler.h
${CONSTRAINTGEOMETRY_SRC}/operations/ConstraintProximityOperation.h
)
set(SOURCE_FILES
${CONSTRAINTGEOMETRY_SRC}/initConstraintGeometry.cpp
${CONSTRAINTGEOMETRY_SRC}/constraint/ConstraintInsertion.cpp
${CONSTRAINTGEOMETRY_SRC}/constraint/ConstraintBilateral.cpp
${CONSTRAINTGEOMETRY_SRC}/constraint/ConstraintUnilateral.cpp
${CONSTRAINTGEOMETRY_SRC}/directions/BindDirection.cpp
${CONSTRAINTGEOMETRY_SRC}/directions/ContactDirection.cpp
${CONSTRAINTGEOMETRY_SRC}/directions/FirstDirection.cpp
${CONSTRAINTGEOMETRY_SRC}/directions/FixedFrameDirection.cpp
${CONSTRAINTGEOMETRY_SRC}/directions/SecondDirection.cpp
${CONSTRAINTGEOMETRY_SRC}/normalHandler/EdgeNormalHandler.cpp
${CONSTRAINTGEOMETRY_SRC}/normalHandler/GouraudTriangleNormalHandler.cpp
${CONSTRAINTGEOMETRY_SRC}/normalHandler/GravityPointNormalHandler.cpp
${CONSTRAINTGEOMETRY_SRC}/normalHandler/PhongTriangleNormalHandler.cpp
${CONSTRAINTGEOMETRY_SRC}/normalHandler/VectorPointNormalHandler.cpp
)
add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES} ${HEADER_FILES} ${README_FILES})
target_link_libraries(${PROJECT_NAME}
CollisionAlgorithm
Sofa.Component.StateContainer
Sofa.Component.Constraint.Lagrangian.Solver
Sofa.GL
)
sofa_create_package_with_targets(
PACKAGE_NAME ${PROJECT_NAME}
PACKAGE_VERSION ${PROJECT_VERSION}
TARGETS ${PROJECT_NAME} AUTO_SET_TARGET_PROPERTIES
INCLUDE_SOURCE_DIR "src"
INCLUDE_INSTALL_DIR ${PROJECT_NAME}
EXAMPLE_INSTALL_DIR "scenes"
RELOCATABLE "plugins"
)