]> Creatis software - creaMaracasVisu.git/blob - bbtk/CMakeLists.txt
*** empty log message ***
[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         ../lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour
135         ../lib/maracasVisuLib/src/CutModule/interface
136         ../lib/maracasVisuLib/src/CutModule/kernel
137 ###    ${MaracasSrcDir}/ILPD/src/wxInterface
138     )
139   #===========================================================================
140  
141 #TODO for a nice VC++ we need to add header file...
142 #1SET(MARACASVISU_LIB_SRCS
143 #1  ${MaracasSrcDir}/manualContour.cpp
144 #1  ${MaracasSrcDir}/manualContour.h
145 #1  ${MaracasSrcDir}/Contour/ContourCrownWidget.cxx
146 #1  ${MaracasSrcDir}/Contour/ContourCrownWidget.h
147 #1  ${MaracasSrcDir}/Contour/ContourVOIWidget.cxx
148 #1  ${MaracasSrcDir}/Contour/ContourVOIWidget.h  
149 #1  ${MaracasSrcDir}/Contour/Propagation.cxx
150 #1  ${MaracasSrcDir}/Contour/Propagation.h
151 #1  ${MaracasSrcDir}/Contour/ExtractControlPoints2D.cxx
152 #1  ${MaracasSrcDir}/Contour/ExtractControlPoints2D.h
153 #1  ${MaracasSrcDir}/Contour/AutoControlPoints.cxx
154 #1  ${MaracasSrcDir}/Contour/AutoControlPoints.h
155 #1  ${MaracasSrcDir}/Contour/ContourPropagation.cxx
156 #1  ${MaracasSrcDir}/Contour/ContourPropagation.h
157 #1  ${MaracasSrcDir}/Contour/contoursIntersection.cxx
158 #1  ${MaracasSrcDir}/Contour/contoursIntersection.h
159 #1  ${MaracasSrcDir}/Contour/vectorFunctions.cxx
160 #1  ${MaracasSrcDir}/Contour/vectorFunctions.h
161 #  marDictionary.cxx
162 #  marDictionary.h
163 #  wxMaracas3DBrowser.cxx
164 #  wxMaracas3DBrowser.h
165 #  wxMaracasDataBrowser.cxx
166 #  wxMaracasDataBrowser.h
167 #  wxMaracasImageBrowser.cxx
168 #  wxMaracasImageBrowser.h
169 #1  ${MaracasSrcDir}/wxMaracasImageBrowser02.cxx
170 #1  ${MaracasSrcDir}/wxMaracasImageBrowser02.h
171 #1  ${MaracasSrcDir}/widgets/wxReadingPriorityPanel.cpp
172 #1  ${MaracasSrcDir}/widgets/wxReadingPriorityPanel.h
173 #  wxMaracasFrame02.cxx
174 #  wxMaracasFrame02.h
175
176 ###  ${MaracasSrcDir}/wxILPDwithImage.cxx
177 ###  ${MaracasSrcDir}/wxILPDwithImage.h
178
179 #  wxMaracasParametersDialog.cxx
180 #  wxMaracasParametersDialog.h
181 #  widgets/wxParametersDialog.cpp
182 #  widgets/wxParametersDialog.h
183 #  wxMaracasHelpDialog.cxx
184 #  wxMaracasHelpDialog.h
185 #  wxMaracasQuantification.cxx
186 #  wxMaracasQuantification.h
187 #1  ${MaracasSrcDir}/widgets/wxVTKRenderWindowInteractor.cxx
188 #1  ${MaracasSrcDir}/widgets/wxVTKRenderWindowInteractor.h
189 #  widgets/wxVTKRenderWindowInteractorEditContour.cxx
190 #  widgets/wxVTKRenderWindowInteractorEditContour.h
191 #  widgets/vtk3DSurfaceWidget.cxx
192 #  widgets/vtk3DSurfaceWidget.h
193 #  widgets/vtk3DQuantSurfaceWidget.cxx
194 #  widgets/vtk3DQuantSurfaceWidget.h
195 #  widgets/vtk2DQuantSliceWidget.cxx
196 #  widgets/vtk2DQuantSliceWidget.h
197 #  widgets/vtk3DSurfaceSTLWidget.cxx
198 #  widgets/vtk3DSurfaceSTLWidget.h
199 #  widgets/wxSurfaceSTLWidget.cxx
200 #  widgets/wxSurfaceSTLWidget.h
201 #  widgets/wxSurfaceWidget.cxx
202 #  widgets/wxSurfaceWidget.h
203 #1  ${MaracasSrcDir}/widgets/InterfaceVtkPanelWidgets.cxx
204 #1  ${MaracasSrcDir}/widgets/InterfaceVtkPanelWidgets.h
205 #  widgets/wxImageBrowserWdg.cxx
206 #  widgets/wxImageBrowserWdg.h
207 #  widgets/wxImageViewerWidget.cxx
208 #  widgets/wxImageViewerWidget.h
209 #1  ${MaracasSrcDir}/widgets/vtkClosePolyData.cxx
210 #1  ${MaracasSrcDir}/widgets/vtkClosePolyData.h
211 #  widgets/vtkImagePolyDataSeedConnectivity.cxx
212 #  widgets/vtkImagePolyDataSeedConnectivity.h
213 #  widgets/vtkInteractorStyleCutter.cxx
214 #  widgets/vtkInteractorStyleCutter.h
215 #  widgets/wxQuantificationWidget.cxx
216 #  widgets/wxQuantificationWidget.h
217 #1  ${MaracasSrcDir}/wxMaracasMPR.cxx
218 #1  ${MaracasSrcDir}/wxMaracasMPR.h
219 #  ${MaracasSrcDir}/wxMaracasEmptyPanel.cxx
220 #  ${MaracasSrcDir}/wxMaracasEmptyPanel.h
221 #  ${MaracasSrcDir}/widgets/wxEmptyPanelWidget.cxx
222 #  ${MaracasSrcDir}/widgets/wxEmptyPanelWidget.h
223 #  ${MaracasSrcDir}/wxMaracasEmptyPanel_2.cxx
224 #  ${MaracasSrcDir}/wxMaracasEmptyPanel_2.h
225 #  ${MaracasSrcDir}/widgets/wxEmptyPanelWidget_2.cxx
226 #  ${MaracasSrcDir}/widgets/wxEmptyPanelWidget_2.h
227 #1  ${MaracasSrcDir}/widgets/wxMPRWidget.cxx
228 #1  ${MaracasSrcDir}/widgets/wxMPRWidget.h
229 #1  ${MaracasSrcDir}/widgets/wxMPRBaseData.cxx
230 #1  ${MaracasSrcDir}/widgets/wxMPRBaseData.h
231 #1  ${MaracasSrcDir}/widgets/wxVtkBaseView.cxx
232 #1  ${MaracasSrcDir}/widgets/wxVtkBaseView.h
233 #1  ${MaracasSrcDir}/widgets/wxMaracas_ViewerWidget.h 
234 #1  ${MaracasSrcDir}/widgets/wxMaracas_ViewerWidget.cxx
235 #1  ${MaracasSrcDir}/widgets/wxMaracas_N_ViewersWidget.h
236 #1  ${MaracasSrcDir}/widgets/wxMaracas_N_ViewersWidget.cxx
237 #  wxMaracasProcessingCT.cxx
238 #  wxMaracasProcessingCT.h
239 #  widgets/wxProcessingCTWidget.cxx
240 #  widgets/wxProcessingCTWidget.h
241 #  wxMaracasQuantificationCT.cxx
242 #  wxMaracasQuantificationCT.h
243 #  widgets/wxQuantificationWidgetCT.cxx
244 #  widgets/wxQuantificationWidgetCT.h
245 #  widgets/wxQuantificationWidget_base.cxx
246 #  widgets/wxQuantificationWidget_base.h
247 #  wxMaracasEmptyPanel_3.cxx
248 #  wxMaracasEmptyPanel_3.h
249 #  widgets/wxEmptyPanel_3_Widget.cxx
250 #  widgets/wxEmptyPanel_3_Widget.h
251 #1  ${MaracasSrcDir}/wxMaracas_ManualTree_MPR.cxx
252 #1  ${MaracasSrcDir}/wxMaracas_ManualTree_MPR.h
253 #1  ${MaracasSrcDir}/widgets/wxManualTree_MPRWidget.cxx
254 #1  ${MaracasSrcDir}/widgets/wxManualTree_MPRWidget.h
255 #  widgets/wxManualRegistration3D.cxx
256 #  widgets/wxManualRegistration3D.h
257 #1  ${MaracasSrcDir}/res/wxInterface.rc
258 #1  ${MaracasSrcDir}/widgets/ContourView.h
259 #1  ${MaracasSrcDir}/widgets/ContourView.cxx
260 #1  ${MaracasSrcDir}/widgets/PointView.h
261 #1  ${MaracasSrcDir}/widgets/PointView.cxx
262 #1  ${MaracasSrcDir}/widgets/LineView.h
263 #1  ${MaracasSrcDir}/widgets/LineView.cxx
264 #  wxMaracasPathology_01.cxx
265 #  wxMaracasPathology_01.h
266 #  widgets/wxPathologyWidget_01.cxx
267 #  widgets/wxPathologyWidget_01.h
268 #  widgets/wxSTLWidget_02.cxx
269 #  widgets/wxSTLWidget_02.h
270 #  widgets/wxSTLWidget_03.cxx
271 #  widgets/wxSTLWidget_03.h
272 #1  ${MaracasSrcDir}/widgets/UtilVtk3DGeometriSelection.cxx
273 #1  ${MaracasSrcDir}/widgets/UtilVtk3DGeometriSelection.h
274 #  manualContourContainer.cxx
275 #  manualContourContainer.h
276 # wxMaracas_ManualSegmentation_MPR.cxx
277 #  wxMaracas_ManualSegmentation_MPR.h
278 #  widgets/wxManualSegmentation_MPRWidget.cxx
279 #  widgets/wxManualSegmentation_MPRWidget.h
280 #  wxMaracas_SegmentationFM3D.cxx
281 #  wxMaracas_SegmentationFM3D.h
282 #  widgets/wxSegmentationFM3DWidget.cxx
283 #  widgets/wxSegmentationFM3DWidget.h
284 #  wxMaracas_ManualContour_Panel.cxx
285 #  wxMaracas_ManualContour_Panel.h
286
287   
288 #####pPlotter classes
289 #1  ${MaracasSrcDir}/widgets/pPlotter/HistogramDialog.cxx
290 #1  ${MaracasSrcDir}/widgets/pPlotter/HistogramDialog.h
291 #1  ${MaracasSrcDir}/widgets/pPlotter/HistogramWidget.cxx
292 #1  ${MaracasSrcDir}/widgets/pPlotter/HistogramWidget.h
293 #1  ${MaracasSrcDir}/widgets/pPlotter/pHistogram.cxx
294 #1  ${MaracasSrcDir}/widgets/pPlotter/pHistogram.h
295 #1  ${MaracasSrcDir}/widgets/pPlotter/mBarRange.cxx
296 #1  ${MaracasSrcDir}/widgets/pPlotter/mBarRange.h
297 #1  ${MaracasSrcDir}/widgets/pPlotter/pLogicalFunction.cxx
298 #1  ${MaracasSrcDir}/widgets/pPlotter/pLogicalFunction.h
299 #1  ${MaracasSrcDir}/widgets/pPlotter/LogicalColorBar.cxx
300 #1  ${MaracasSrcDir}/widgets/pPlotter/LogicalColorBar.h
301 #1  ${MaracasSrcDir}/widgets/pPlotter/pGraphicalFunction.h
302 #1  ${MaracasSrcDir}/widgets/pPlotter/pGraphicalFunction.cxx
303 #1  ${MaracasSrcDir}/widgets/pPlotter/pFunctionPoint.cxx
304 #1  ${MaracasSrcDir}/widgets/pPlotter/pFunctionPoint.h
305 #1  ${MaracasSrcDir}/widgets/pPlotter/pPlotterWindow.cxx
306 #1  ${MaracasSrcDir}/widgets/pPlotter/pPlotterWindow.h
307 #1  ${MaracasSrcDir}/widgets/pPlotter/pPlotterLayer.cxx
308 #1  ${MaracasSrcDir}/widgets/pPlotter/pPlotterLayer.h
309 #1  ${MaracasSrcDir}/widgets/pPlotter/pPlotterScaleX.h
310 #1  ${MaracasSrcDir}/widgets/pPlotter/pPlotterScaleX.cxx
311 #1 ${MaracasSrcDir}/widgets/pPlotter/pPlotterScaleY.h
312 #1  ${MaracasSrcDir}/widgets/pPlotter/pPlotterScaleY.cxx
313 #1  ${MaracasSrcDir}/widgets/pPlotter/pColorBar.h
314 #1  ${MaracasSrcDir}/widgets/pPlotter/pColorBar.cxx
315 #1  ${MaracasSrcDir}/widgets/pPlotter/pFigure.h
316 #1  ${MaracasSrcDir}/widgets/pPlotter/pFigure.cxx
317 #1  ${MaracasSrcDir}/widgets/pPlotter/pColorPoint.h
318 #1  ${MaracasSrcDir}/widgets/pPlotter/pColorPoint.cxx
319 #1  ${MaracasSrcDir}/widgets/pPlotter/pPlotter.h
320 #1  ${MaracasSrcDir}/widgets/pPlotter/pPlotter.cxx
321 #1  ${MaracasSrcDir}/widgets/pPlotter/mathplot.cxx
322 #1  ${MaracasSrcDir}/widgets/pPlotter/mathplot.h
323 #1  ${MaracasSrcDir}/widgets/pPlotter/MaximumsDialog.cxx
324 #1 ${MaracasSrcDir}/widgets/pPlotter/MaximumsDialog.h
325 #1  ${MaracasSrcDir}/widgets/pPlotter/Histogram.cxx
326 #1  ${MaracasSrcDir}/widgets/pPlotter/Histogram.h
327
328 ###
329 #1  ${MaracasSrcDir}/../../../include/matrix.h
330 #1  ${MaracasSrcDir}/../../kernel/marImageData.cpp
331 #1  ${MaracasSrcDir}/../../kernel/marImageData.h
332 #1  ${MaracasSrcDir}/../../kernel/marDicomBase.cpp
333 #1  ${MaracasSrcDir}/../../kernel/marDicomBase.h
334 #1  ${MaracasSrcDir}/../../kernel/marGdcmDicom.cpp
335 #1  ${MaracasSrcDir}/../../kernel/marGdcmDicom.h
336 #1  ${MaracasSrcDir}/../../kernel/marObject.cpp
337 #1  ${MaracasSrcDir}/../../kernel/marObject.h
338 #1  ${MaracasSrcDir}/../../kernel/volume.cxx
339 #1  ${MaracasSrcDir}/../../kernel/volume.hxx
340 #1  ${MaracasSrcDir}/../../kernel/marParameters.cpp
341 #1  ${MaracasSrcDir}/../../kernel/marParameters.h
342 #1  ${MaracasSrcDir}/../../kernel/marDynData.cpp
343 #1  ${MaracasSrcDir}/../../kernel/marDynData.h
344
345 #1)
346
347 #1ADD_LIBRARY(maracasvisu STATIC  ${MARACASVISU_LIB_SRCS} )
348 #1TARGET_LINK_LIBRARIES(maracasvisu
349 #1  ${BBP_WXWIDGETS_LIBRARIES}
350 #1  vtkCommon  vtkFiltering  vtkGraphics   vtkImaging  vtkRendering vtkHybrid
351 #1  vtkWidgets vtkVolumeRendering vtkHybrid 
352 #1  #vtkIO 
353 #1  ${LIBIDO_LIBRARIES}
354 ###  vtkgdcm
355 #1)
356
357
358 #===========================================================================
359 SET(${BBTK_PACKAGE_NAME}_LIBS 
360   # LIST HERE THE ADDITIONAL LIBS TO LINK AGAINST
361   # EXCEPT : the same libs than for INCLUDE_DIRS 
362 ###  ${MYSQL_LIBRARIES}
363   creaMaracasVisu
364   creaMaracasVisu_CutModule_interface
365   creaMaracasVisu_CutModule_kernel
366 ###  ILPDModel.lib
367 ###  ILPDInterface
368 ###  ILPDcontrolerInterface
369
370 )
371 #===========================================================================
372
373 #===========================================================================
374 # SET TO TRUE TO HAVE INFORMATION ON LIBRARIES FOUND DURING CMAKE CONFIGURE
375 SET(FIND_PACKAGE_VERBOSE TRUE)
376 #===========================================================================
377
378 #===========================================================================
379 # END OF USER SECTION
380 #===========================================================================
381
382
383
384
385
386 #===========================================================================
387 # Include configuration script
388 INCLUDE(Configure.cmake)
389 #===========================================================================
390
391 #===========================================================================
392 # EOF
393 #===========================================================================
394
395 ### ADD_SUBDIRECTORY( ../../src/interface/wxWindows/ILPD ILPD )