]> Creatis software - creaMaracasVisu.git/blob - bbtk/CMakeLists.txt
Changed bbtk package name to comply to coding style
[creaMaracasVisu.git] / bbtk / CMakeLists.txt
1
2 INCLUDE_REGULAR_EXPRESSION("^.*$")
3 set(CMAKE_MFC_FLAG 2)
4
5
6 #===========================================================================
7 # CMAKE SETTINGS FOR BUILDING A BBTK PACKAGE
8 #===========================================================================
9
10 #===========================================================================
11 # THE NAME OF THE BBTK PACKAGE
12 SET(BBTK_PACKAGE_NAME creaMaracasVisu)
13 #===========================================================================
14
15
16
17 #===========================================================================
18 # IF IT IS A STANDALONE PROJECT UNCOMMENT NEXT LINE TO DECLARE YOUR PROJECT
19 # PROJECT(bb${BBTK_PACKAGE_NAME})
20 #===========================================================================
21
22 #===========================================================================
23 # PACKAGE AUTHOR
24 # !!! NO COMMA ALLOWED !!!
25 SET(${BBTK_PACKAGE_NAME}_AUTHOR "eduardo.davila [at] creatis.insa-lyon.fr")
26 #===========================================================================
27
28 #===========================================================================
29 # PACKAGE DESCRIPTION
30 SET(${BBTK_PACKAGE_NAME}_DESCRIPTION "Maracas library. LG : what does it provide ?")
31 #===========================================================================
32
33 #===========================================================================
34 # PACKAGE VERSION NUMBER 
35 SET(${BBTK_PACKAGE_NAME}_MAJOR_VERSION 1)
36 SET(${BBTK_PACKAGE_NAME}_MINOR_VERSION 0)
37 SET(${BBTK_PACKAGE_NAME}_BUILD_VERSION 0)
38 #===========================================================================
39
40
41 #===========================================================================
42 # UNCOMMENT EACH LIBRARY NEEDED (WILL BE FOUND AND USED AUTOMATICALLY)
43  SET(${BBTK_PACKAGE_NAME}_USE_VTK  ON)
44  SET(${BBTK_PACKAGE_NAME}_USE_ITK  ON)
45  SET(${BBTK_PACKAGE_NAME}_USE_GDCM ON)
46 # SET(${BBTK_PACKAGE_NAME}_USE_GSMIS ON)
47  SET(${BBTK_PACKAGE_NAME}_USE_WXWIDGETS ON)
48 #===========================================================================
49
50 #===========================================================================
51 # LIST HERE THE OTHER bbtk PACKAGES NEEDED
52 # (WILL BE FOUND AND USED AUTOMATICALLY)
53 SET(${BBTK_PACKAGE_NAME}_USE_PACKAGES 
54   # std
55   # wx
56   # itk
57   # vtk
58   # ...
59   )
60 #===========================================================================
61
62 #===========================================================================
63 # THE SOURCES OF THE PACKAGE
64 # EITHER UNCOMMENT NEXT LINE TO COMPILE ALL .cxx OF THE src DIRECTORY :
65 SET(${BBTK_PACKAGE_NAME}_COMPILE_ALL_CXX ON)
66 # ... OR LIST THE FILES TO COMPILE MANUALLY :
67 #SET(${BBTK_PACKAGE_NAME}_SOURCES
68 # LIST HERE THE FILES TO COMPILE TO BUILD THE LIB
69 # E.G. TO COMPILE "toto.cxx" ADD "toto" (NO EXTENSION)
70 # THE PATH MUST BE RELATIVE TO THE src FOLDER
71 #    )
72 #===========================================================================
73
74 #===========================================================================
75 # THE xml SOURCES OF THE PACKAGE
76 # EITHER UNCOMMENT NEXT LINE TO bbfy ALL .xml OF THE src DIRECTORY :
77 SET(${BBTK_PACKAGE_NAME}_COMPILE_ALL_XML ON)
78 # ... OR LIST THE FILES TO COMPILE MANUALLY :
79 #SET(${BBTK_PACKAGE_NAME}_XML_SOURCES
80 # LIST HERE THE FILES TO bbfy TO BUILD THE LIB
81 # E.G. TO bbfy "toto.xml" ADD "toto" (NO EXTENSION)
82 # THE PATH MUST BE RELATIVE TO THE src FOLDER
83 #    )
84 #===========================================================================
85
86 #===========================================================================
87 # THE SCRIPT-DEFINED BOXES OF THE PACKAGE (bbs)
88 # EITHER UNCOMMENT NEXT LINE TO INCLUDE ALL .bbs OF THE bbs/boxes DIRECTORY :
89 SET(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_BOXES ON)
90 # ... OR LIST THE FILES TO INCLUDE MANUALLY :
91 # SET(${BBTK_PACKAGE_NAME}_BBS_BOXES
92 # LIST HERE THE bbs FILES TO INCLUDE 
93 # E.G. TO INCLUDE "boxes/bbtoto.bbs" ADD "boxes/bbtoto" (NO EXTENSION)
94 # !! THE PATH MUST BE RELATIVE TO THE bbs FOLDER !!
95 #)
96 #===========================================================================
97
98 #===========================================================================
99 # THE SCRIPT-DEFINED APPLICATIONS OF THE PACKAGE (bbs)
100 # EITHER UNCOMMENT NEXT LINE TO INCLUDE ALL .bbs OF THE bbs/appli DIRECTORY :
101 SET(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_APPLI ON)
102 # ... OR LIST THE FILES TO INCLUDE MANUALLY :
103 # SET(${BBTK_PACKAGE_NAME}_BBS_APPLI
104 # LIST HERE THE bbs FILES TO INCLUDE 
105 # E.G. TO INCLUDE "appli/testToto.bbs" ADD "appli/testToto" (NO EXTENSION)
106 # !! THE PATH MUST BE RELATIVE TO THE bbs FOLDER !!
107 #)
108 #===========================================================================
109
110 #===========================================================================
111 SET(${BBTK_PACKAGE_NAME}_INCLUDE_DIRS
112   # LIST HERE YOUR ADDITIONAL INCLUDE DIRECTORIES 
113   # EXCEPT :
114   #  - src
115   #  - bbtk dirs
116   #  - automatically handled libraries or packages : wx, vtk... (see above)
117   #  - the dirs automatically set by other libraries found by FIND_PACKAGE
118   )
119 #===========================================================================
120
121 FIND_PATH( libIdo_DIR libidobin $ENV{LIBIDO_PATH} )
122 FIND_PACKAGE(libIdo)
123 INCLUDE_DIRECTORIES(${LIBIDO_INCLUDE_PATH})
124
125   #===========================================================================
126   INCLUDE_DIRECTORIES(
127     # LIST HERE YOUR ADDITIONAL INCLUDE DIRECTORIES (EXCEPT BBTK'S)
128         ../lib/maracasVisuLib/src/kernel
129         ../lib/maracasVisuLib/include
130     ../lib/maracasVisuLib/src/kernel
131         ../lib/maracasVisuLib/src/interface/wxWindows
132         ../lib/maracasVisuLib/src/interface/wxWindows/widgets
133         ../lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter
134 ###    ${MaracasSrcDir}/ILPD/src/wxInterface
135     )
136   #===========================================================================
137  
138 #TODO for a nice VC++ we need to add header file...
139 #1SET(MARACASVISU_LIB_SRCS
140 #1  ${MaracasSrcDir}/manualContour.cpp
141 #1  ${MaracasSrcDir}/manualContour.h
142 #1  ${MaracasSrcDir}/Contour/ContourCrownWidget.cxx
143 #1  ${MaracasSrcDir}/Contour/ContourCrownWidget.h
144 #1  ${MaracasSrcDir}/Contour/ContourVOIWidget.cxx
145 #1  ${MaracasSrcDir}/Contour/ContourVOIWidget.h  
146 #1  ${MaracasSrcDir}/Contour/Propagation.cxx
147 #1  ${MaracasSrcDir}/Contour/Propagation.h
148 #1  ${MaracasSrcDir}/Contour/ExtractControlPoints2D.cxx
149 #1  ${MaracasSrcDir}/Contour/ExtractControlPoints2D.h
150 #1  ${MaracasSrcDir}/Contour/AutoControlPoints.cxx
151 #1  ${MaracasSrcDir}/Contour/AutoControlPoints.h
152 #1  ${MaracasSrcDir}/Contour/ContourPropagation.cxx
153 #1  ${MaracasSrcDir}/Contour/ContourPropagation.h
154 #1  ${MaracasSrcDir}/Contour/contoursIntersection.cxx
155 #1  ${MaracasSrcDir}/Contour/contoursIntersection.h
156 #1  ${MaracasSrcDir}/Contour/vectorFunctions.cxx
157 #1  ${MaracasSrcDir}/Contour/vectorFunctions.h
158 #  marDictionary.cxx
159 #  marDictionary.h
160 #  wxMaracas3DBrowser.cxx
161 #  wxMaracas3DBrowser.h
162 #  wxMaracasDataBrowser.cxx
163 #  wxMaracasDataBrowser.h
164 #  wxMaracasImageBrowser.cxx
165 #  wxMaracasImageBrowser.h
166 #1  ${MaracasSrcDir}/wxMaracasImageBrowser02.cxx
167 #1  ${MaracasSrcDir}/wxMaracasImageBrowser02.h
168 #1  ${MaracasSrcDir}/widgets/wxReadingPriorityPanel.cpp
169 #1  ${MaracasSrcDir}/widgets/wxReadingPriorityPanel.h
170 #  wxMaracasFrame02.cxx
171 #  wxMaracasFrame02.h
172
173 ###  ${MaracasSrcDir}/wxILPDwithImage.cxx
174 ###  ${MaracasSrcDir}/wxILPDwithImage.h
175
176 #  wxMaracasParametersDialog.cxx
177 #  wxMaracasParametersDialog.h
178 #  widgets/wxParametersDialog.cpp
179 #  widgets/wxParametersDialog.h
180 #  wxMaracasHelpDialog.cxx
181 #  wxMaracasHelpDialog.h
182 #  wxMaracasQuantification.cxx
183 #  wxMaracasQuantification.h
184 #1  ${MaracasSrcDir}/widgets/wxVTKRenderWindowInteractor.cxx
185 #1  ${MaracasSrcDir}/widgets/wxVTKRenderWindowInteractor.h
186 #  widgets/wxVTKRenderWindowInteractorEditContour.cxx
187 #  widgets/wxVTKRenderWindowInteractorEditContour.h
188 #  widgets/vtk3DSurfaceWidget.cxx
189 #  widgets/vtk3DSurfaceWidget.h
190 #  widgets/vtk3DQuantSurfaceWidget.cxx
191 #  widgets/vtk3DQuantSurfaceWidget.h
192 #  widgets/vtk2DQuantSliceWidget.cxx
193 #  widgets/vtk2DQuantSliceWidget.h
194 #  widgets/vtk3DSurfaceSTLWidget.cxx
195 #  widgets/vtk3DSurfaceSTLWidget.h
196 #  widgets/wxSurfaceSTLWidget.cxx
197 #  widgets/wxSurfaceSTLWidget.h
198 #  widgets/wxSurfaceWidget.cxx
199 #  widgets/wxSurfaceWidget.h
200 #1  ${MaracasSrcDir}/widgets/InterfaceVtkPanelWidgets.cxx
201 #1  ${MaracasSrcDir}/widgets/InterfaceVtkPanelWidgets.h
202 #  widgets/wxImageBrowserWdg.cxx
203 #  widgets/wxImageBrowserWdg.h
204 #  widgets/wxImageViewerWidget.cxx
205 #  widgets/wxImageViewerWidget.h
206 #1  ${MaracasSrcDir}/widgets/vtkClosePolyData.cxx
207 #1  ${MaracasSrcDir}/widgets/vtkClosePolyData.h
208 #  widgets/vtkImagePolyDataSeedConnectivity.cxx
209 #  widgets/vtkImagePolyDataSeedConnectivity.h
210 #  widgets/vtkInteractorStyleCutter.cxx
211 #  widgets/vtkInteractorStyleCutter.h
212 #  widgets/wxQuantificationWidget.cxx
213 #  widgets/wxQuantificationWidget.h
214 #1  ${MaracasSrcDir}/wxMaracasMPR.cxx
215 #1  ${MaracasSrcDir}/wxMaracasMPR.h
216 #  ${MaracasSrcDir}/wxMaracasEmptyPanel.cxx
217 #  ${MaracasSrcDir}/wxMaracasEmptyPanel.h
218 #  ${MaracasSrcDir}/widgets/wxEmptyPanelWidget.cxx
219 #  ${MaracasSrcDir}/widgets/wxEmptyPanelWidget.h
220 #  ${MaracasSrcDir}/wxMaracasEmptyPanel_2.cxx
221 #  ${MaracasSrcDir}/wxMaracasEmptyPanel_2.h
222 #  ${MaracasSrcDir}/widgets/wxEmptyPanelWidget_2.cxx
223 #  ${MaracasSrcDir}/widgets/wxEmptyPanelWidget_2.h
224 #1  ${MaracasSrcDir}/widgets/wxMPRWidget.cxx
225 #1  ${MaracasSrcDir}/widgets/wxMPRWidget.h
226 #1  ${MaracasSrcDir}/widgets/wxMPRBaseData.cxx
227 #1  ${MaracasSrcDir}/widgets/wxMPRBaseData.h
228 #1  ${MaracasSrcDir}/widgets/wxVtkBaseView.cxx
229 #1  ${MaracasSrcDir}/widgets/wxVtkBaseView.h
230 #1  ${MaracasSrcDir}/widgets/wxMaracas_ViewerWidget.h 
231 #1  ${MaracasSrcDir}/widgets/wxMaracas_ViewerWidget.cxx
232 #1  ${MaracasSrcDir}/widgets/wxMaracas_N_ViewersWidget.h
233 #1  ${MaracasSrcDir}/widgets/wxMaracas_N_ViewersWidget.cxx
234 #  wxMaracasProcessingCT.cxx
235 #  wxMaracasProcessingCT.h
236 #  widgets/wxProcessingCTWidget.cxx
237 #  widgets/wxProcessingCTWidget.h
238 #  wxMaracasQuantificationCT.cxx
239 #  wxMaracasQuantificationCT.h
240 #  widgets/wxQuantificationWidgetCT.cxx
241 #  widgets/wxQuantificationWidgetCT.h
242 #  widgets/wxQuantificationWidget_base.cxx
243 #  widgets/wxQuantificationWidget_base.h
244 #  wxMaracasEmptyPanel_3.cxx
245 #  wxMaracasEmptyPanel_3.h
246 #  widgets/wxEmptyPanel_3_Widget.cxx
247 #  widgets/wxEmptyPanel_3_Widget.h
248 #1  ${MaracasSrcDir}/wxMaracas_ManualTree_MPR.cxx
249 #1  ${MaracasSrcDir}/wxMaracas_ManualTree_MPR.h
250 #1  ${MaracasSrcDir}/widgets/wxManualTree_MPRWidget.cxx
251 #1  ${MaracasSrcDir}/widgets/wxManualTree_MPRWidget.h
252 #  widgets/wxManualRegistration3D.cxx
253 #  widgets/wxManualRegistration3D.h
254 #1  ${MaracasSrcDir}/res/wxInterface.rc
255 #1  ${MaracasSrcDir}/widgets/ContourView.h
256 #1  ${MaracasSrcDir}/widgets/ContourView.cxx
257 #1  ${MaracasSrcDir}/widgets/PointView.h
258 #1  ${MaracasSrcDir}/widgets/PointView.cxx
259 #1  ${MaracasSrcDir}/widgets/LineView.h
260 #1  ${MaracasSrcDir}/widgets/LineView.cxx
261 #  wxMaracasPathology_01.cxx
262 #  wxMaracasPathology_01.h
263 #  widgets/wxPathologyWidget_01.cxx
264 #  widgets/wxPathologyWidget_01.h
265 #  widgets/wxSTLWidget_02.cxx
266 #  widgets/wxSTLWidget_02.h
267 #  widgets/wxSTLWidget_03.cxx
268 #  widgets/wxSTLWidget_03.h
269 #1  ${MaracasSrcDir}/widgets/UtilVtk3DGeometriSelection.cxx
270 #1  ${MaracasSrcDir}/widgets/UtilVtk3DGeometriSelection.h
271 #  manualContourContainer.cxx
272 #  manualContourContainer.h
273 # wxMaracas_ManualSegmentation_MPR.cxx
274 #  wxMaracas_ManualSegmentation_MPR.h
275 #  widgets/wxManualSegmentation_MPRWidget.cxx
276 #  widgets/wxManualSegmentation_MPRWidget.h
277 #  wxMaracas_SegmentationFM3D.cxx
278 #  wxMaracas_SegmentationFM3D.h
279 #  widgets/wxSegmentationFM3DWidget.cxx
280 #  widgets/wxSegmentationFM3DWidget.h
281 #  wxMaracas_ManualContour_Panel.cxx
282 #  wxMaracas_ManualContour_Panel.h
283
284   
285 #####pPlotter classes
286 #1  ${MaracasSrcDir}/widgets/pPlotter/HistogramDialog.cxx
287 #1  ${MaracasSrcDir}/widgets/pPlotter/HistogramDialog.h
288 #1  ${MaracasSrcDir}/widgets/pPlotter/HistogramWidget.cxx
289 #1  ${MaracasSrcDir}/widgets/pPlotter/HistogramWidget.h
290 #1  ${MaracasSrcDir}/widgets/pPlotter/pHistogram.cxx
291 #1  ${MaracasSrcDir}/widgets/pPlotter/pHistogram.h
292 #1  ${MaracasSrcDir}/widgets/pPlotter/mBarRange.cxx
293 #1  ${MaracasSrcDir}/widgets/pPlotter/mBarRange.h
294 #1  ${MaracasSrcDir}/widgets/pPlotter/pLogicalFunction.cxx
295 #1  ${MaracasSrcDir}/widgets/pPlotter/pLogicalFunction.h
296 #1  ${MaracasSrcDir}/widgets/pPlotter/LogicalColorBar.cxx
297 #1  ${MaracasSrcDir}/widgets/pPlotter/LogicalColorBar.h
298 #1  ${MaracasSrcDir}/widgets/pPlotter/pGraphicalFunction.h
299 #1  ${MaracasSrcDir}/widgets/pPlotter/pGraphicalFunction.cxx
300 #1  ${MaracasSrcDir}/widgets/pPlotter/pFunctionPoint.cxx
301 #1  ${MaracasSrcDir}/widgets/pPlotter/pFunctionPoint.h
302 #1  ${MaracasSrcDir}/widgets/pPlotter/pPlotterWindow.cxx
303 #1  ${MaracasSrcDir}/widgets/pPlotter/pPlotterWindow.h
304 #1  ${MaracasSrcDir}/widgets/pPlotter/pPlotterLayer.cxx
305 #1  ${MaracasSrcDir}/widgets/pPlotter/pPlotterLayer.h
306 #1  ${MaracasSrcDir}/widgets/pPlotter/pPlotterScaleX.h
307 #1  ${MaracasSrcDir}/widgets/pPlotter/pPlotterScaleX.cxx
308 #1 ${MaracasSrcDir}/widgets/pPlotter/pPlotterScaleY.h
309 #1  ${MaracasSrcDir}/widgets/pPlotter/pPlotterScaleY.cxx
310 #1  ${MaracasSrcDir}/widgets/pPlotter/pColorBar.h
311 #1  ${MaracasSrcDir}/widgets/pPlotter/pColorBar.cxx
312 #1  ${MaracasSrcDir}/widgets/pPlotter/pFigure.h
313 #1  ${MaracasSrcDir}/widgets/pPlotter/pFigure.cxx
314 #1  ${MaracasSrcDir}/widgets/pPlotter/pColorPoint.h
315 #1  ${MaracasSrcDir}/widgets/pPlotter/pColorPoint.cxx
316 #1  ${MaracasSrcDir}/widgets/pPlotter/pPlotter.h
317 #1  ${MaracasSrcDir}/widgets/pPlotter/pPlotter.cxx
318 #1  ${MaracasSrcDir}/widgets/pPlotter/mathplot.cxx
319 #1  ${MaracasSrcDir}/widgets/pPlotter/mathplot.h
320 #1  ${MaracasSrcDir}/widgets/pPlotter/MaximumsDialog.cxx
321 #1 ${MaracasSrcDir}/widgets/pPlotter/MaximumsDialog.h
322 #1  ${MaracasSrcDir}/widgets/pPlotter/Histogram.cxx
323 #1  ${MaracasSrcDir}/widgets/pPlotter/Histogram.h
324
325 ###
326 #1  ${MaracasSrcDir}/../../../include/matrix.h
327 #1  ${MaracasSrcDir}/../../kernel/marImageData.cpp
328 #1  ${MaracasSrcDir}/../../kernel/marImageData.h
329 #1  ${MaracasSrcDir}/../../kernel/marDicomBase.cpp
330 #1  ${MaracasSrcDir}/../../kernel/marDicomBase.h
331 #1  ${MaracasSrcDir}/../../kernel/marGdcmDicom.cpp
332 #1  ${MaracasSrcDir}/../../kernel/marGdcmDicom.h
333 #1  ${MaracasSrcDir}/../../kernel/marObject.cpp
334 #1  ${MaracasSrcDir}/../../kernel/marObject.h
335 #1  ${MaracasSrcDir}/../../kernel/volume.cxx
336 #1  ${MaracasSrcDir}/../../kernel/volume.hxx
337 #1  ${MaracasSrcDir}/../../kernel/marParameters.cpp
338 #1  ${MaracasSrcDir}/../../kernel/marParameters.h
339 #1  ${MaracasSrcDir}/../../kernel/marDynData.cpp
340 #1  ${MaracasSrcDir}/../../kernel/marDynData.h
341
342 #1)
343
344 #1ADD_LIBRARY(maracasvisu STATIC  ${MARACASVISU_LIB_SRCS} )
345 #1TARGET_LINK_LIBRARIES(maracasvisu
346 #1  ${BBP_WXWIDGETS_LIBRARIES}
347 #1  vtkCommon  vtkFiltering  vtkGraphics   vtkImaging  vtkRendering vtkHybrid
348 #1  vtkWidgets vtkVolumeRendering vtkHybrid 
349 #1  #vtkIO 
350 #1  ${LIBIDO_LIBRARIES}
351 ###  vtkgdcm
352 #1)
353
354
355 #===========================================================================
356 SET(${BBTK_PACKAGE_NAME}_LIBS 
357   # LIST HERE THE ADDITIONAL LIBS TO LINK AGAINST
358   # EXCEPT : the same libs than for INCLUDE_DIRS 
359 ###  ${MYSQL_LIBRARIES}
360   creaMaracasVisu
361 ###  ILPDModel.lib
362 ###  ILPDInterface
363 ###  ILPDcontrolerInterface
364
365 )
366 #===========================================================================
367
368 #===========================================================================
369 # SET TO TRUE TO HAVE INFORMATION ON LIBRARIES FOUND DURING CMAKE CONFIGURE
370 SET(FIND_PACKAGE_VERBOSE TRUE)
371 #===========================================================================
372
373 #===========================================================================
374 # END OF USER SECTION
375 #===========================================================================
376
377
378
379
380
381 #===========================================================================
382 # Include configuration script
383 INCLUDE(Configure.cmake)
384 #===========================================================================
385
386 #===========================================================================
387 # EOF
388 #===========================================================================
389
390 ### ADD_SUBDIRECTORY( ../../src/interface/wxWindows/ILPD ILPD )