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--
26 echo --docgeneration--
28 echo --installPrefix--
30 echo --installPrefixThird--
31 echo $installPrefixThird
44 if [ ! -f $installPrefixThird/share/creatools_third_party_library_config.sh ]
46 echo missing $installPrefixThird/share/creatools_third_party_library_config.sh
49 echo "==================================================="
52 echo "YOU NEED TO RUN 'Install Third Party Libraries' (1) FIRST !"
53 echo "==================================================="
55 echo "Hit any key to continue"
60 if [ ! -e $generationdir/creatools_source ]
62 echo missing $generationdir/creatools_source
65 echo "==================================================="
68 echo "YOU NEED TO RUN 'Load' (2) FIRST !"
69 echo "==================================================="
76 if [ ! -f $installPrefixThird/share/creatools_third_party_library_config.sh ]
78 echo missing $installPrefixThird/share/creatools_third_party_library_config.sh
81 echo "==================================================="
84 echo "YOU NEED TO RUN 'Load' (2) FIRST !"
85 echo "==================================================="
92 if [ -e creatools_bin ]
100 # -------------------------
101 # start_point = 2 : CREA
102 #-------------------------
103 if [ $start_point -le 2 ]
106 # the following stupid test is used at debug time; Please don't remove!
110 bash $scriptDir/cmakemod.sh $creasource $generationdir $installPrefix $buildType
111 bash $scriptDir/creaVariables.sh $creasource $generationdir $docgeneration
112 bash $scriptDir/compilemod.sh $buildType $creasource $generationdir
113 bash $scriptDir/ctestmod.sh $creasource $generationdir
116 creadll=$generationdir/creatools_bin/creaBin
117 LD_LIBRARY_PATH=$creadll:LD_LIBRARY_$PATH
118 export crea_DIR=$generationdir/creatools_bin/creaBin
120 # -------------------------
121 # start_point = 3 : BBTK
122 #-------------------------
123 if [ $start_point -le 3 ]
125 # the following stupid test is used at debug time; Please don't remove!
130 echo ========================================================= $bbtksource $generationdir $installPrefix $buildType
131 bash $scriptDir/cmakemod.sh $bbtksource $generationdir $installPrefix $buildType
132 bash $scriptDir/bbtkVariables.sh $bbtksource $generationdir $docgeneration $gdcmVersion
133 bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir
134 bash $scriptDir/ctestmod.sh $bbtksource $generationdir
137 bbtkdll=$generationdir/creatools_bin/bbtkBin
138 LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH
139 export BBTK_DIR=$generationdir/creatools_bin/bbtkBin
141 # -------------------------
142 # start_point = 4 : creaMaracasVisu
143 #-------------------------
144 if [ $start_point -le 4 ]
146 # the following stupid test is used at debug time; Please don't remove!
151 bash $scriptDir/cmakemod.sh $creamaracassource $generationdir $installPrefix $buildType
152 bash $scriptDir/creaMaracasVariables.sh $creamaracassource $generationdir $docgeneration
153 bash $scriptDir/compilemod.sh $buildType $creamaracassource $generationdir
154 bash $scriptDir/ctestmod.sh $creamaracassource $generationdir
157 creamaracasdll=$generationdir/creatools_bin/creaMaracasVisuBin
158 LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_PATH
159 export creaMaracasVisu_DIR=$generationdir/creatools_bin/creaMaracasVisuBin
161 # -------------------------
162 # start_point = 5 : creaEnvironment
163 #-------------------------
164 if [ $start_point -le 5 ]
166 # the following stupid test is used at debug time; Please don't remove!
171 bash $scriptDir/cmakemod.sh $creaenvironmentsource $generationdir $installPrefix $buildType
172 bash $scriptDir/creaenvironmentVariables.sh $creaenvironmentsource $generationdir $docgeneration
173 bash $scriptDir/compilemod.sh $buildType $creaenvironmentsource $generationdir
174 bash $scriptDir/ctestmod.sh $creaenvironmentsource $generationdir
177 creaenvironmentdll=$generationdir/creatools_bin/creaenvironmentBin
178 LD_LIBRARY_PATH=$creaenvironmentdll:$LD_LIBRARY_PATH
179 export creaEnvironment_DIR=$generationdir/creatools_bin/creaEnvironmentBin
181 # -------------------------
182 # start_point = 6 : creaBruker
183 #-------------------------
184 if [ $start_point -le 6 ]
186 # the following stupid test is used at debug time; Please don't remove!
191 bash $scriptDir/cmakemod.sh $creabrukersource $generationdir $installPrefix $buildType
192 bash $scriptDir/creaBrukerVariables.sh $creabrukersource $generationdir $docgeneration $gdcmVersion
193 bash $scriptDir/compilemod.sh $buildType $creabrukersource $generationdir
194 bash $scriptDir/ctestmod.sh $creabrukersource $generationdir
197 creabrukerdll=$generationdir/creatools_bin/creabrukerBin
198 LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_PATH
199 export creaBruker_DIR=$generationdir/creatools_bin/creaBrukerBin
201 # -------------------------
202 # start_point = 7 : creaImageIO
203 #-------------------------
204 if [ $start_point -le 7 ]
206 # the following stupid test is used at debug time; Please don't remove!
211 bash $scriptDir/cmakemod.sh $creaimagesource $generationdir $installPrefix $buildType
212 bash $scriptDir/creaImageIOVariables.sh $creaimagesource $generationdir $docgeneration $gdcmVersion
213 bash $scriptDir/compilemod.sh $buildType $creaimagesource $generationdir
214 bash $scriptDir/ctestmod.sh $creaimagesource $generationdir
217 creaimagedll=$generationdir/creatools_bin/creaimageBin
218 LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_PATH
219 export creaImageIO_DIR=$generationdir/creatools_bin/creaImageIOBin
221 # -------------------------
222 # start_point = 8 : creaContour
223 #-------------------------
224 if [ $start_point -le 8 ]
226 # the following stupid test is used at debug time; Please don't remove!
231 bash $scriptDir/cmakemod.sh $creacontourssource $generationdir $installPrefix $buildType
232 bash $scriptDir/creaContoursVariables.sh $creacontourssource $generationdir $docgeneration
233 bash $scriptDir/compilemod.sh $buildType $creacontourssource $generationdir
234 bash $scriptDir/ctestmod.sh $creacontourssource $generationdir
237 creacontourdll=$generationdir/creatools_bin/creacontoursBin
238 LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_PATH
239 export creaContours_DIR=$generationdir/creatools_bin/creaContoursBin
241 # -------------------------
242 # start_point = 9 : creaRigidRegistration
243 #-------------------------
244 if [ $start_point -le 9 ]
246 # the following stupid test is used at debug time; Please don't remove!
250 bash $scriptDir/cmakemod.sh $crearigidregistrationssource $generationdir $installPrefix $buildType
251 bash $scriptDir/creaRigidRegistrationVariables.sh $crearigidregistrationssource $generationdir $docgeneration
252 bash $scriptDir/compilemod.sh $buildType $crearigidregistrationssource $generationdir
253 bash $scriptDir/ctestmod.sh $crearigidregistrationssource $generationdir
256 # crearigidregistrationdll=$generationdir/creatools_bin/crearigidregistrationBin
257 # LD_LIBRARY_PATH=$crearigidregistrationdll:$LD_LIBRARY_PATH
260 # -------------------------
261 # start_point = 10 : bbtkGEditor
262 #-------------------------
263 if [ $start_point -le 10 ]
265 # the following stupid test is used at debug time; Please don't remove!
270 bash $scriptDir/cmakemod.sh $bbtkgeditorsource $generationdir $installPrefix $buildType
271 bash $scriptDir/bbtkGEditorVariables.sh $bbtkgeditorsource $generationdir $docgeneration
272 bash $scriptDir/compilemod.sh $buildType $bbtkgeditorsource $generationdir
273 bash $scriptDir/ctestmod.sh $bbtkgeditorsource $generationdir
276 # bbtkgeditordll=$generationdir/creatools_bin/bbtkgeditorBin
277 # LD_LIBRARY_PATH=$bbtkgeditordll:$LD_LIBRARY_PATH
280 # -------------------------
281 # start_point = 11 : creaTools
282 #-------------------------
283 if [ $start_point -le 11 ]
285 # the following stupid test is used at debug time; Please don't remove!
290 bash $scriptDir/cmakemod.sh $creatoolssource $generationdir $installPrefix $buildType
291 bash $scriptDir/creaToolsVariables.sh $creatoolssource $generationdir $docgeneration
292 bash $scriptDir/compilemod.sh $buildType $creatoolssource $generationdir
297 # bash ctestmod.sh $creatoolsbinary $generationdir
298 # creatoolsdll=$generationdir/creatools_bin/creatoolsBin
299 # LD_LIBRARY_PATH=$creatoolssdll:$LD_LIBRARY_PATH
302 # -------------------------
303 # start_point = 12 : creaMiniTools
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 $creaminitoolssource $generationdir $installPrefix $buildType
313 bash $scriptDir/creaMiniToolsVariables.sh $creaminitoolssource $generationdir $docgeneration
314 bash $scriptDir/compilemod.sh $buildType $creaminitoolssource $generationdir