3 if [ ! -f $PWD/scripts/CreaTools-configure.sh ]
7 echo "==================================================="
10 echo "YOU NEED TO RUN 'Configure' (0) FIRST !"
11 echo "==================================================="
17 # Set all local variables
19 source $PWD/scripts/CreaTools-configure.sh
20 source $PWD/scripts/CreaTools-names.sh
23 echo $PWD/scripts/CreaTools-configure.sh
24 echo --generationdir--
28 echo --docgeneration--
30 echo --installPrefix--
32 echo --installPrefixThird--
33 echo $installPrefixThird
46 if [ ! -f $installPrefixThird/share/creatools_third_party_library_config.sh ]
48 echo missing $installPrefixThird/share/creatools_third_party_library_config.sh
51 echo "==================================================="
54 echo "YOU NEED TO RUN 'Install Third Party Libraries' (1) FIRST !"
55 echo "==================================================="
57 echo "Hit any key to continue"
62 if [ ! -e $generationdir/creatools_source ]
64 echo missing $generationdir/creatools_source
67 echo "==================================================="
70 echo "YOU NEED TO RUN 'Load' (2) FIRST !"
71 echo "==================================================="
78 if [ ! -f $installPrefixThird/share/creatools_third_party_library_config.sh ]
80 echo missing $installPrefixThird/share/creatools_third_party_library_config.sh
83 echo "==================================================="
86 echo "YOU NEED TO RUN 'Load' (2) FIRST !"
87 echo "==================================================="
94 if [ -e creatools_bin ]
102 # -------------------------
103 # start_point = 2 : CREA
104 #-------------------------
105 if [ $start_point -le 2 ]
108 # the following stupid test is used at debug time; Please don't remove!
112 bash $scriptDir/cmakemod.sh $creasource $generationdir $installPrefix $buildType
113 bash $scriptDir/creaVariables.sh $creasource $generationdir $docgeneration
114 bash $scriptDir/compilemod.sh $buildType $creasource $generationdir $corenumber
115 bash $scriptDir/ctestmod.sh $creasource $generationdir
118 creadll=$generationdir/creatools_bin/creaBin
119 LD_LIBRARY_PATH=$creadll:LD_LIBRARY_$PATH
120 export crea_DIR=$generationdir/creatools_bin/creaBin
122 # -------------------------
123 # start_point = 3 : BBTK
124 #-------------------------
125 if [ $start_point -le 3 ]
127 # the following stupid test is used at debug time; Please don't remove!
132 echo ========================================================= $bbtksource $generationdir $installPrefix $buildType
133 bash $scriptDir/cmakemod.sh $bbtksource $generationdir $installPrefix $buildType
134 bash $scriptDir/bbtkVariables.sh $bbtksource $generationdir $docgeneration $gdcmVersion
135 bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir $corenumber
136 bash $scriptDir/ctestmod.sh $bbtksource $generationdir
139 bbtkdll=$generationdir/creatools_bin/bbtkBin
140 LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH
141 export BBTK_DIR=$generationdir/creatools_bin/bbtkBin
143 # -------------------------
144 # start_point = 4 : creaMaracasVisu
145 #-------------------------
146 if [ $start_point -le 4 ]
148 # the following stupid test is used at debug time; Please don't remove!
153 bash $scriptDir/cmakemod.sh $creamaracassource $generationdir $installPrefix $buildType
154 bash $scriptDir/creaMaracasVariables.sh $creamaracassource $generationdir $docgeneration
155 bash $scriptDir/compilemod.sh $buildType $creamaracassource $generationdir $corenumber
156 bash $scriptDir/ctestmod.sh $creamaracassource $generationdir
159 creamaracasdll=$generationdir/creatools_bin/creaMaracasVisuBin
160 LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_PATH
161 export creaMaracasVisu_DIR=$generationdir/creatools_bin/creaMaracasVisuBin
163 # -------------------------
164 # start_point = 5 : creaEnvironment
165 #-------------------------
166 if [ $start_point -le 5 ]
168 # the following stupid test is used at debug time; Please don't remove!
173 bash $scriptDir/cmakemod.sh $creaenvironmentsource $generationdir $installPrefix $buildType
174 bash $scriptDir/creaenvironmentVariables.sh $creaenvironmentsource $generationdir $docgeneration
175 bash $scriptDir/compilemod.sh $buildType $creaenvironmentsource $generationdir $corenumber
176 bash $scriptDir/ctestmod.sh $creaenvironmentsource $generationdir
179 creaenvironmentdll=$generationdir/creatools_bin/creaenvironmentBin
180 LD_LIBRARY_PATH=$creaenvironmentdll:$LD_LIBRARY_PATH
181 export creaEnvironment_DIR=$generationdir/creatools_bin/creaEnvironmentBin
183 # -------------------------
184 # start_point = 6 : creaBruker
185 #-------------------------
186 if [ $start_point -le 6 ]
188 # the following stupid test is used at debug time; Please don't remove!
193 bash $scriptDir/cmakemod.sh $creabrukersource $generationdir $installPrefix $buildType
194 bash $scriptDir/creaBrukerVariables.sh $creabrukersource $generationdir $docgeneration $gdcmVersion
195 bash $scriptDir/compilemod.sh $buildType $creabrukersource $generationdir $corenumber
196 bash $scriptDir/ctestmod.sh $creabrukersource $generationdir
199 creabrukerdll=$generationdir/creatools_bin/creabrukerBin
200 LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_PATH
201 export creaBruker_DIR=$generationdir/creatools_bin/creaBrukerBin
203 # -------------------------
204 # start_point = 7 : creaImageIO
205 #-------------------------
206 if [ $start_point -le 7 ]
208 # the following stupid test is used at debug time; Please don't remove!
213 bash $scriptDir/cmakemod.sh $creaimagesource $generationdir $installPrefix $buildType
214 bash $scriptDir/creaImageIOVariables.sh $creaimagesource $generationdir $docgeneration $gdcmVersion
215 bash $scriptDir/compilemod.sh $buildType $creaimagesource $generationdir $corenumber
216 bash $scriptDir/ctestmod.sh $creaimagesource $generationdir
219 creaimagedll=$generationdir/creatools_bin/creaimageBin
220 LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_PATH
221 export creaImageIO_DIR=$generationdir/creatools_bin/creaImageIOBin
223 # -------------------------
224 # start_point = 8 : creaContour
225 #-------------------------
226 if [ $start_point -le 8 ]
228 # the following stupid test is used at debug time; Please don't remove!
233 bash $scriptDir/cmakemod.sh $creacontourssource $generationdir $installPrefix $buildType
234 bash $scriptDir/creaContoursVariables.sh $creacontourssource $generationdir $docgeneration
235 bash $scriptDir/compilemod.sh $buildType $creacontourssource $generationdir $corenumber
236 bash $scriptDir/ctestmod.sh $creacontourssource $generationdir
239 creacontourdll=$generationdir/creatools_bin/creacontoursBin
240 LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_PATH
241 export creaContours_DIR=$generationdir/creatools_bin/creaContoursBin
243 # -------------------------
244 # start_point = 9 : creaRigidRegistration
245 #-------------------------
246 if [ $start_point -le 9 ]
248 # the following stupid test is used at debug time; Please don't remove!
252 bash $scriptDir/cmakemod.sh $crearigidregistrationssource $generationdir $installPrefix $buildType
253 bash $scriptDir/creaRigidRegistrationVariables.sh $crearigidregistrationssource $generationdir $docgeneration
254 bash $scriptDir/compilemod.sh $buildType $crearigidregistrationssource $generationdir $corenumber
255 bash $scriptDir/ctestmod.sh $crearigidregistrationssource $generationdir
258 # crearigidregistrationdll=$generationdir/creatools_bin/crearigidregistrationBin
259 # LD_LIBRARY_PATH=$crearigidregistrationdll:$LD_LIBRARY_PATH
262 # -------------------------
263 # start_point = 10 : bbtkGEditor
264 #-------------------------
265 if [ $start_point -le 10 ]
267 # the following stupid test is used at debug time; Please don't remove!
272 bash $scriptDir/cmakemod.sh $bbtkgeditorsource $generationdir $installPrefix $buildType
273 bash $scriptDir/bbtkGEditorVariables.sh $bbtkgeditorsource $generationdir $docgeneration
274 bash $scriptDir/compilemod.sh $buildType $bbtkgeditorsource $generationdir $corenumber
275 bash $scriptDir/ctestmod.sh $bbtkgeditorsource $generationdir
278 # bbtkgeditordll=$generationdir/creatools_bin/bbtkgeditorBin
279 # LD_LIBRARY_PATH=$bbtkgeditordll:$LD_LIBRARY_PATH
284 # -------------------------
285 # start_point = 11 : libido
286 #-------------------------
287 #if [ $start_point -le 11 ]
289 ## the following stupid test is used at debug time; Please don't remove!
290 ##if [ true = false ]
294 # bash $scriptDir/cmakemod.sh $libidosource $generationdir $installPrefix $buildType
295 # bash $scriptDir/libidoVariables.sh $libidosource $generationdir $docgeneration
296 # bash $scriptDir/compilemod.sh $buildType $libidosource $generationdir $corenumber
302 # -------------------------
303 # start_point = 12 : creaTools
304 #-------------------------
305 if [ $start_point -le 12 ]
307 # the following stupid test is used at debug time; Please don't remove!
312 bash $scriptDir/cmakemod.sh $creatoolssource $generationdir $installPrefix $buildType
313 bash $scriptDir/creaToolsVariables.sh $creatoolssource $generationdir $docgeneration
314 bash $scriptDir/compilemod.sh $buildType $creatoolssource $generationdir $corenumber
319 # bash ctestmod.sh $creatoolsbinary $generationdir
320 # creatoolsdll=$generationdir/creatools_bin/creatoolsBin
321 # LD_LIBRARY_PATH=$creatoolssdll:$LD_LIBRARY_PATH
324 # -------------------------
325 # start_point = 13 : creaMiniTools
326 #-------------------------
327 if [ $start_point -le 13 ]
329 # the following stupid test is used at debug time; Please don't remove!
334 bash $scriptDir/cmakemod.sh $creaminitoolssource $generationdir $installPrefix $buildType
335 bash $scriptDir/creaMiniToolsVariables.sh $creaminitoolssource $generationdir $docgeneration
336 bash $scriptDir/compilemod.sh $buildType $creaminitoolssource $generationdir $corenumber