-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindVSofa.cmake
232 lines (218 loc) · 7 KB
/
FindVSofa.cmake
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
# $Id$
# Tested with: Sofa 1.0 rev10511@svn://scm.gforge.inria.fr/svn/sofa/trunk/Sofa
include( FindPackageHandleStandardArgs )
include( VistaFindUtils )
if( NOT VSOFA_FOUND )
vista_find_package_root( SOFA include/sofa/core/SofaLibrary.h )
if( SOFA_ROOT_DIR )
set( SOFA_INCLUDE_DIRS
${SOFA_ROOT_DIR}/include
${SOFA_ROOT_DIR}/modules
${SOFA_ROOT_DIR}/applications
${SOFA_ROOT_DIR}/extlibs
)
if( WIN32 )
if( MSVC )
if( MSVC10 )
set( SOFA_LIBRARY_DIRS ${SOFA_ROOT_DIR}/lib/ ${SOFA_ROOT_DIR}/bin/ )
else( MSVC10 )
set( SOFA_LIBRARY_DIRS ${SOFA_ROOT_DIR}/lib/ ${SOFA_ROOT_DIR}/bin/ )
message( WARNING "FindPackageSOFA - Unknown MSVC version" )
endif( MSVC10 )
else( MSVC )
set( SOFA_LIBRARY_DIRS ${SOFA_ROOT_DIR}/lib/ ${SOFA_ROOT_DIR}/bin/ )
message( WARNING "FindPackageSOFA - using WIN32 without Visual Studio - this will probably fail - use at your own risk!" )
endif( MSVC )
set( SOFA_LIBRARIES
optimized opengl32.lib
optimized glu32.lib
optimized gdi32.lib
optimized user32.lib
optimized FlowVR_1_0.lib
optimized newmat_1_0.lib
optimized ObjectCreator_1_0.lib
optimized QGLViewer_1_0.lib
optimized Qwt_1_0.lib
optimized Sensable_1_0.lib
optimized SofaBaseAnimationLoop_1_0.lib
optimized SofaBaseCollision_1_0.lib
optimized SofaBaseLinearSolver_1_0.lib
optimized SofaBaseMechanics_1_0.lib
optimized SofaBaseTopology_1_0.lib
optimized SofaBaseVisual_1_0.lib
optimized SofaBoundaryCondition_1_0.lib
optimized SofaComponentAdvanced_1_0.lib
optimized SofaComponentBase_1_0.lib
optimized SofaComponentCommon_1_0.lib
optimized SofaComponentGeneral_1_0.lib
optimized SofaComponentMain_1_0.lib
optimized SofaComponentMisc_1_0.lib
optimized SofaConstraint_1_0.lib
optimized SofaCore_1_0.lib
optimized SofaDefaultType_1_0.lib
optimized SofaDeformable_1_0.lib
optimized SofaDenseSolver_1_0.lib
optimized SofaEigen2Solver_1_0.lib
optimized SofaEngine_1_0.lib
optimized SofaEulerianFluid_1_0.lib
optimized SofaExplicitOdeSolver_1_0.lib
optimized SofaExporter_1_0.lib
optimized SofaGraphComponent_1_0.lib
optimized SofaGuiCommon_1_0.lib
optimized SofaGuiGlut_1_0.lib
optimized SofaGuiMain_1_0.lib
optimized SofaGuiQt_1_0.lib
optimized SofaHaptics_1_0.lib
optimized SofaHelper_1_0.lib
optimized SofaImplicitOdeSolver_1_0.lib
optimized SofaLoader_1_0.lib
optimized SofaMeshCollision_1_0.lib
optimized SofaMisc_1_0.lib
optimized SofaMiscCollision_1_0.lib
optimized SofaMiscEngine_1_0.lib
optimized SofaMiscFem_1_0.lib
optimized SofaMiscForceField_1_0.lib
optimized SofaMiscMapping_1_0.lib
optimized SofaMiscSolver_1_0.lib
optimized SofaMiscTopology_1_0.lib
optimized SofaModeler_1_0.lib
optimized SofaNonUniformFem_1_0.lib
optimized SofaObjectInteraction_1_0.lib
optimized SofaOpenglVisual_1_0.lib
optimized SofaPreconditioner_1_0.lib
optimized SofaRigid_1_0.lib
optimized SofaSimpleFem_1_0.lib
optimized SofaSimulationCommon_1_0.lib
optimized SofaSimulationGraph_1_0.lib
optimized SofaSimulationTree_1_0.lib
optimized SofaSphFluid_1_0.lib
optimized SofaTopologyMapping_1_0.lib
optimized SofaUserInteraction_1_0.lib
optimized SofaValidation_1_0.lib
optimized SofaVolumetricData_1_0.lib
optimized tinyxml_1_0.lib
optimized glut32.lib
optimized comctl32.lib
optimized AdvAPI32.lib
optimized Shell32.lib
optimized WSock32.lib
optimized WS2_32.lib
optimized Ole32.lib
optimized zlib.lib
optimized libpng.lib
optimized glew32.lib
optimized Qt3Support4.lib
optimized QtXml4.lib
optimized QtOpenGL4.lib
optimized QtGui4.lib
optimized QtCore4.lib
debug opengl32.lib
debug glu32.lib
debug gdi32.lib
debug user32.lib
debug FlowVR_1_0d.lib
debug newmat_1_0d.lib
debug ObjectCreator_1_0d.lib
debug QGLViewer_1_0.lib
debug Qwt_1_0d.lib
debug Sensable_1_0d.lib
debug SofaBaseAnimationLoop_1_0d.lib
debug SofaBaseCollision_1_0d.lib
debug SofaBaseLinearSolver_1_0d.lib
debug SofaBaseMechanics_1_0d.lib
debug SofaBaseTopology_1_0d.lib
debug SofaBaseVisual_1_0d.lib
debug SofaBoundaryCondition_1_0d.lib
debug SofaComponentAdvanced_1_0d.lib
debug SofaComponentBase_1_0d.lib
debug SofaComponentCommon_1_0d.lib
debug SofaComponentGeneral_1_0d.lib
debug SofaComponentMain_1_0d.lib
debug SofaComponentMisc_1_0d.lib
debug SofaConstraint_1_0d.lib
debug SofaCore_1_0d.lib
debug SofaDefaultType_1_0d.lib
debug SofaDeformable_1_0d.lib
debug SofaDenseSolver_1_0d.lib
debug SofaEigen2Solver_1_0d.lib
debug SofaEngine_1_0d.lib
debug SofaEulerianFluid_1_0d.lib
debug SofaExplicitOdeSolver_1_0d.lib
debug SofaExporter_1_0d.lib
debug SofaGraphComponent_1_0d.lib
debug SofaGuiCommon_1_0d.lib
debug SofaGuiGlut_1_0d.lib
debug SofaGuiMain_1_0d.lib
debug SofaGuiQt_1_0d.lib
debug SofaHaptics_1_0d.lib
debug SofaHelper_1_0d.lib
debug SofaImplicitOdeSolver_1_0d.lib
debug SofaLoader_1_0d.lib
debug SofaMeshCollision_1_0d.lib
debug SofaMisc_1_0d.lib
debug SofaMiscCollision_1_0d.lib
debug SofaMiscEngine_1_0d.lib
debug SofaMiscFem_1_0d.lib
debug SofaMiscForceField_1_0d.lib
debug SofaMiscMapping_1_0d.lib
debug SofaMiscSolver_1_0d.lib
debug SofaMiscTopology_1_0d.lib
debug SofaModeler_1_0d.lib
debug SofaNonUniformFem_1_0d.lib
debug SofaObjectInteraction_1_0d.lib
debug SofaOpenglVisual_1_0d.lib
debug SofaPreconditioner_1_0d.lib
debug SofaRigid_1_0d.lib
debug SofaSimpleFem_1_0d.lib
debug SofaSimulationCommon_1_0d.lib
debug SofaSimulationGraph_1_0d.lib
debug SofaSimulationTree_1_0d.lib
debug SofaSphFluid_1_0d.lib
debug SofaTopologyMapping_1_0d.lib
debug SofaUserInteraction_1_0d.lib
debug SofaValidation_1_0d.lib
debug SofaVolumetricData_1_0d.lib
debug tinyxml_1_0d.lib
debug glut32.lib
debug comctl32.lib
debug AdvAPI32.lib
debug Shell32.lib
debug WSock32.lib
debug WS2_32.lib
debug Ole32.lib
debug zlib.lib
debug libpng.lib
debug glew32.lib
debug Qt3Supportd4.lib
debug QtXmld4.lib
debug QtOpenGLd4.lib
debug QtGuid4.lib
debug QtCored4.lib
)
endif( WIN32 )
set( SOFA_DEFINITIONS -D_MSVC
-D_WINDOWS
-DUNICODE
-DWIN32
-DQT_LARGEFILE_SUPPORT
-DSOFA_QT4
-DSOFA_DEV
-DSOFA_GUI_QTVIEWER
-DSOFA_GUI_GLUT
-DSOFA_DUMP_VISITOR_INFO
-DSOFA_HAVE_ZLIB
-DSOFA_HAVE_PNG
-DSOFA_HAVE_GLEW
-DSOFA_XML_PARSER_TINYXML
-DSOFA_GUI_QT
-DMINI_FLOWVR
-DQT_QT3SUPPORT_LIB
-DQT3_SUPPORT
-DQT_XML_LIB
-DQT_OPENGL_LIB
-DQT_GUI_LIB
-DQT_CORE_LIB
-DQT_THREAD_SUPPORT )
endif( SOFA_ROOT_DIR )
endif( NOT VSOFA_FOUND )
find_package_handle_standard_args( VSOFA "SOFA could not be found" SOFA_ROOT_DIR )