2 INCLUDE_REGULAR_EXPRESSION("^.*$")
6 #===========================================================================
7 # CMAKE SETTINGS FOR BUILDING A BBTK PACKAGE
8 #===========================================================================
10 #===========================================================================
11 # THE NAME OF THE BBTK PACKAGE
12 SET(BBTK_PACKAGE_NAME creaMaracasVisu)
13 #===========================================================================
17 #===========================================================================
18 # IF IT IS A STANDALONE PROJECT UNCOMMENT NEXT LINE TO DECLARE YOUR PROJECT
19 # PROJECT(bb${BBTK_PACKAGE_NAME})
20 #===========================================================================
22 #===========================================================================
24 # !!! NO COMMA ALLOWED !!!
25 SET(${BBTK_PACKAGE_NAME}_AUTHOR "eduardo.davila [at] creatis.insa-lyon.fr")
26 #===========================================================================
28 #===========================================================================
30 SET(${BBTK_PACKAGE_NAME}_DESCRIPTION "Maracas library. LG : what does it provide ?")
31 #===========================================================================
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 #===========================================================================
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 #===========================================================================
50 #===========================================================================
51 # LIST HERE THE OTHER bbtk PACKAGES NEEDED
52 # (WILL BE FOUND AND USED AUTOMATICALLY)
53 SET(${BBTK_PACKAGE_NAME}_USE_PACKAGES
60 #===========================================================================
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
72 #===========================================================================
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
84 #===========================================================================
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 !!
96 #===========================================================================
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 !!
108 #===========================================================================
110 #===========================================================================
111 SET(${BBTK_PACKAGE_NAME}_INCLUDE_DIRS
112 # LIST HERE YOUR ADDITIONAL INCLUDE DIRECTORIES
116 # - automatically handled libraries or packages : wx, vtk... (see above)
117 # - the dirs automatically set by other libraries found by FIND_PACKAGE
119 #===========================================================================
121 #FIND_PATH( libIdo_DIR libidobin $ENV{LIBIDO_PATH} )
122 #FIND_PACKAGE(libIdo)
123 #INCLUDE_DIRECTORIES(${LIBIDO_INCLUDE_PATH})
125 #===========================================================================
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 ../lib/maracasVisuLib/src/CutModule2/interface
138 ../lib/maracasVisuLib/src/CutModule2/kernel
139 ### ${MaracasSrcDir}/ILPD/src/wxInterface
141 #===========================================================================
143 #TODO for a nice VC++ we need to add header file...
144 #1SET(MARACASVISU_LIB_SRCS
145 #1 ${MaracasSrcDir}/manualContour.cpp
146 #1 ${MaracasSrcDir}/manualContour.h
147 #1 ${MaracasSrcDir}/Contour/ContourCrownWidget.cxx
148 #1 ${MaracasSrcDir}/Contour/ContourCrownWidget.h
149 #1 ${MaracasSrcDir}/Contour/ContourVOIWidget.cxx
150 #1 ${MaracasSrcDir}/Contour/ContourVOIWidget.h
151 #1 ${MaracasSrcDir}/Contour/Propagation.cxx
152 #1 ${MaracasSrcDir}/Contour/Propagation.h
153 #1 ${MaracasSrcDir}/Contour/ExtractControlPoints2D.cxx
154 #1 ${MaracasSrcDir}/Contour/ExtractControlPoints2D.h
155 #1 ${MaracasSrcDir}/Contour/AutoControlPoints.cxx
156 #1 ${MaracasSrcDir}/Contour/AutoControlPoints.h
157 #1 ${MaracasSrcDir}/Contour/ContourPropagation.cxx
158 #1 ${MaracasSrcDir}/Contour/ContourPropagation.h
159 #1 ${MaracasSrcDir}/Contour/contoursIntersection.cxx
160 #1 ${MaracasSrcDir}/Contour/contoursIntersection.h
161 #1 ${MaracasSrcDir}/Contour/vectorFunctions.cxx
162 #1 ${MaracasSrcDir}/Contour/vectorFunctions.h
165 # wxMaracas3DBrowser.cxx
166 # wxMaracas3DBrowser.h
167 # wxMaracasDataBrowser.cxx
168 # wxMaracasDataBrowser.h
169 # wxMaracasImageBrowser.cxx
170 # wxMaracasImageBrowser.h
171 #1 ${MaracasSrcDir}/wxMaracasImageBrowser02.cxx
172 #1 ${MaracasSrcDir}/wxMaracasImageBrowser02.h
173 #1 ${MaracasSrcDir}/widgets/wxReadingPriorityPanel.cpp
174 #1 ${MaracasSrcDir}/widgets/wxReadingPriorityPanel.h
175 # wxMaracasFrame02.cxx
178 ### ${MaracasSrcDir}/wxILPDwithImage.cxx
179 ### ${MaracasSrcDir}/wxILPDwithImage.h
181 # wxMaracasParametersDialog.cxx
182 # wxMaracasParametersDialog.h
183 # widgets/wxParametersDialog.cpp
184 # widgets/wxParametersDialog.h
185 # wxMaracasHelpDialog.cxx
186 # wxMaracasHelpDialog.h
187 # wxMaracasQuantification.cxx
188 # wxMaracasQuantification.h
189 #1 ${MaracasSrcDir}/widgets/wxVTKRenderWindowInteractor.cxx
190 #1 ${MaracasSrcDir}/widgets/wxVTKRenderWindowInteractor.h
191 # widgets/wxVTKRenderWindowInteractorEditContour.cxx
192 # widgets/wxVTKRenderWindowInteractorEditContour.h
193 # widgets/vtk3DSurfaceWidget.cxx
194 # widgets/vtk3DSurfaceWidget.h
195 # widgets/vtk3DQuantSurfaceWidget.cxx
196 # widgets/vtk3DQuantSurfaceWidget.h
197 # widgets/vtk2DQuantSliceWidget.cxx
198 # widgets/vtk2DQuantSliceWidget.h
199 # widgets/vtk3DSurfaceSTLWidget.cxx
200 # widgets/vtk3DSurfaceSTLWidget.h
201 # widgets/wxSurfaceSTLWidget.cxx
202 # widgets/wxSurfaceSTLWidget.h
203 # widgets/wxSurfaceWidget.cxx
204 # widgets/wxSurfaceWidget.h
205 #1 ${MaracasSrcDir}/widgets/InterfaceVtkPanelWidgets.cxx
206 #1 ${MaracasSrcDir}/widgets/InterfaceVtkPanelWidgets.h
207 # widgets/wxImageBrowserWdg.cxx
208 # widgets/wxImageBrowserWdg.h
209 # widgets/wxImageViewerWidget.cxx
210 # widgets/wxImageViewerWidget.h
211 #1 ${MaracasSrcDir}/widgets/vtkClosePolyData.cxx
212 #1 ${MaracasSrcDir}/widgets/vtkClosePolyData.h
213 # widgets/vtkImagePolyDataSeedConnectivity.cxx
214 # widgets/vtkImagePolyDataSeedConnectivity.h
215 # widgets/vtkInteractorStyleCutter.cxx
216 # widgets/vtkInteractorStyleCutter.h
217 # widgets/wxQuantificationWidget.cxx
218 # widgets/wxQuantificationWidget.h
219 #1 ${MaracasSrcDir}/wxMaracasMPR.cxx
220 #1 ${MaracasSrcDir}/wxMaracasMPR.h
221 # ${MaracasSrcDir}/wxMaracasEmptyPanel.cxx
222 # ${MaracasSrcDir}/wxMaracasEmptyPanel.h
223 # ${MaracasSrcDir}/widgets/wxEmptyPanelWidget.cxx
224 # ${MaracasSrcDir}/widgets/wxEmptyPanelWidget.h
225 # ${MaracasSrcDir}/wxMaracasEmptyPanel_2.cxx
226 # ${MaracasSrcDir}/wxMaracasEmptyPanel_2.h
227 # ${MaracasSrcDir}/widgets/wxEmptyPanelWidget_2.cxx
228 # ${MaracasSrcDir}/widgets/wxEmptyPanelWidget_2.h
229 #1 ${MaracasSrcDir}/widgets/wxMPRWidget.cxx
230 #1 ${MaracasSrcDir}/widgets/wxMPRWidget.h
231 #1 ${MaracasSrcDir}/widgets/wxMPRBaseData.cxx
232 #1 ${MaracasSrcDir}/widgets/wxMPRBaseData.h
233 #1 ${MaracasSrcDir}/widgets/wxVtkBaseView.cxx
234 #1 ${MaracasSrcDir}/widgets/wxVtkBaseView.h
235 #1 ${MaracasSrcDir}/widgets/wxMaracas_ViewerWidget.h
236 #1 ${MaracasSrcDir}/widgets/wxMaracas_ViewerWidget.cxx
237 #1 ${MaracasSrcDir}/widgets/wxMaracas_N_ViewersWidget.h
238 #1 ${MaracasSrcDir}/widgets/wxMaracas_N_ViewersWidget.cxx
239 # wxMaracasProcessingCT.cxx
240 # wxMaracasProcessingCT.h
241 # widgets/wxProcessingCTWidget.cxx
242 # widgets/wxProcessingCTWidget.h
243 # wxMaracasQuantificationCT.cxx
244 # wxMaracasQuantificationCT.h
245 # widgets/wxQuantificationWidgetCT.cxx
246 # widgets/wxQuantificationWidgetCT.h
247 # widgets/wxQuantificationWidget_base.cxx
248 # widgets/wxQuantificationWidget_base.h
249 # wxMaracasEmptyPanel_3.cxx
250 # wxMaracasEmptyPanel_3.h
251 # widgets/wxEmptyPanel_3_Widget.cxx
252 # widgets/wxEmptyPanel_3_Widget.h
253 #1 ${MaracasSrcDir}/wxMaracas_ManualTree_MPR.cxx
254 #1 ${MaracasSrcDir}/wxMaracas_ManualTree_MPR.h
255 #1 ${MaracasSrcDir}/widgets/wxManualTree_MPRWidget.cxx
256 #1 ${MaracasSrcDir}/widgets/wxManualTree_MPRWidget.h
257 # widgets/wxManualRegistration3D.cxx
258 # widgets/wxManualRegistration3D.h
259 #1 ${MaracasSrcDir}/res/wxInterface.rc
260 #1 ${MaracasSrcDir}/widgets/ContourView.h
261 #1 ${MaracasSrcDir}/widgets/ContourView.cxx
262 #1 ${MaracasSrcDir}/widgets/PointView.h
263 #1 ${MaracasSrcDir}/widgets/PointView.cxx
264 #1 ${MaracasSrcDir}/widgets/LineView.h
265 #1 ${MaracasSrcDir}/widgets/LineView.cxx
266 # wxMaracasPathology_01.cxx
267 # wxMaracasPathology_01.h
268 # widgets/wxPathologyWidget_01.cxx
269 # widgets/wxPathologyWidget_01.h
270 # widgets/wxSTLWidget_02.cxx
271 # widgets/wxSTLWidget_02.h
272 # widgets/wxSTLWidget_03.cxx
273 # widgets/wxSTLWidget_03.h
274 #1 ${MaracasSrcDir}/widgets/UtilVtk3DGeometriSelection.cxx
275 #1 ${MaracasSrcDir}/widgets/UtilVtk3DGeometriSelection.h
276 # manualContourContainer.cxx
277 # manualContourContainer.h
278 # wxMaracas_ManualSegmentation_MPR.cxx
279 # wxMaracas_ManualSegmentation_MPR.h
280 # widgets/wxManualSegmentation_MPRWidget.cxx
281 # widgets/wxManualSegmentation_MPRWidget.h
282 # wxMaracas_SegmentationFM3D.cxx
283 # wxMaracas_SegmentationFM3D.h
284 # widgets/wxSegmentationFM3DWidget.cxx
285 # widgets/wxSegmentationFM3DWidget.h
286 # wxMaracas_ManualContour_Panel.cxx
287 # wxMaracas_ManualContour_Panel.h
290 #####pPlotter classes
291 #1 ${MaracasSrcDir}/widgets/pPlotter/HistogramDialog.cxx
292 #1 ${MaracasSrcDir}/widgets/pPlotter/HistogramDialog.h
293 #1 ${MaracasSrcDir}/widgets/pPlotter/HistogramWidget.cxx
294 #1 ${MaracasSrcDir}/widgets/pPlotter/HistogramWidget.h
295 #1 ${MaracasSrcDir}/widgets/pPlotter/pHistogram.cxx
296 #1 ${MaracasSrcDir}/widgets/pPlotter/pHistogram.h
297 #1 ${MaracasSrcDir}/widgets/pPlotter/mBarRange.cxx
298 #1 ${MaracasSrcDir}/widgets/pPlotter/mBarRange.h
299 #1 ${MaracasSrcDir}/widgets/pPlotter/pLogicalFunction.cxx
300 #1 ${MaracasSrcDir}/widgets/pPlotter/pLogicalFunction.h
301 #1 ${MaracasSrcDir}/widgets/pPlotter/LogicalColorBar.cxx
302 #1 ${MaracasSrcDir}/widgets/pPlotter/LogicalColorBar.h
303 #1 ${MaracasSrcDir}/widgets/pPlotter/pGraphicalFunction.h
304 #1 ${MaracasSrcDir}/widgets/pPlotter/pGraphicalFunction.cxx
305 #1 ${MaracasSrcDir}/widgets/pPlotter/pFunctionPoint.cxx
306 #1 ${MaracasSrcDir}/widgets/pPlotter/pFunctionPoint.h
307 #1 ${MaracasSrcDir}/widgets/pPlotter/pPlotterWindow.cxx
308 #1 ${MaracasSrcDir}/widgets/pPlotter/pPlotterWindow.h
309 #1 ${MaracasSrcDir}/widgets/pPlotter/pPlotterLayer.cxx
310 #1 ${MaracasSrcDir}/widgets/pPlotter/pPlotterLayer.h
311 #1 ${MaracasSrcDir}/widgets/pPlotter/pPlotterScaleX.h
312 #1 ${MaracasSrcDir}/widgets/pPlotter/pPlotterScaleX.cxx
313 #1 ${MaracasSrcDir}/widgets/pPlotter/pPlotterScaleY.h
314 #1 ${MaracasSrcDir}/widgets/pPlotter/pPlotterScaleY.cxx
315 #1 ${MaracasSrcDir}/widgets/pPlotter/pColorBar.h
316 #1 ${MaracasSrcDir}/widgets/pPlotter/pColorBar.cxx
317 #1 ${MaracasSrcDir}/widgets/pPlotter/pFigure.h
318 #1 ${MaracasSrcDir}/widgets/pPlotter/pFigure.cxx
319 #1 ${MaracasSrcDir}/widgets/pPlotter/pColorPoint.h
320 #1 ${MaracasSrcDir}/widgets/pPlotter/pColorPoint.cxx
321 #1 ${MaracasSrcDir}/widgets/pPlotter/pPlotter.h
322 #1 ${MaracasSrcDir}/widgets/pPlotter/pPlotter.cxx
323 #1 ${MaracasSrcDir}/widgets/pPlotter/mathplot.cxx
324 #1 ${MaracasSrcDir}/widgets/pPlotter/mathplot.h
325 #1 ${MaracasSrcDir}/widgets/pPlotter/MaximumsDialog.cxx
326 #1 ${MaracasSrcDir}/widgets/pPlotter/MaximumsDialog.h
327 #1 ${MaracasSrcDir}/widgets/pPlotter/Histogram.cxx
328 #1 ${MaracasSrcDir}/widgets/pPlotter/Histogram.h
331 #1 ${MaracasSrcDir}/../../../include/matrix.h
332 #1 ${MaracasSrcDir}/../../kernel/marImageData.cpp
333 #1 ${MaracasSrcDir}/../../kernel/marImageData.h
334 #1 ${MaracasSrcDir}/../../kernel/marDicomBase.cpp
335 #1 ${MaracasSrcDir}/../../kernel/marDicomBase.h
336 #1 ${MaracasSrcDir}/../../kernel/marGdcmDicom.cpp
337 #1 ${MaracasSrcDir}/../../kernel/marGdcmDicom.h
338 #1 ${MaracasSrcDir}/../../kernel/marObject.cpp
339 #1 ${MaracasSrcDir}/../../kernel/marObject.h
340 #1 ${MaracasSrcDir}/../../kernel/volume.cxx
341 #1 ${MaracasSrcDir}/../../kernel/volume.hxx
342 #1 ${MaracasSrcDir}/../../kernel/marParameters.cpp
343 #1 ${MaracasSrcDir}/../../kernel/marParameters.h
344 #1 ${MaracasSrcDir}/../../kernel/marDynData.cpp
345 #1 ${MaracasSrcDir}/../../kernel/marDynData.h
349 #1ADD_LIBRARY(maracasvisu STATIC ${MARACASVISU_LIB_SRCS} )
350 #1TARGET_LINK_LIBRARIES(maracasvisu
351 #1 ${BBP_WXWIDGETS_LIBRARIES}
352 #1 vtkCommon vtkFiltering vtkGraphics vtkImaging vtkRendering vtkHybrid
353 #1 vtkWidgets vtkVolumeRendering vtkHybrid
355 #1 ${LIBIDO_LIBRARIES}
360 #===========================================================================
361 SET(${BBTK_PACKAGE_NAME}_LIBS
362 # LIST HERE THE ADDITIONAL LIBS TO LINK AGAINST
363 # EXCEPT : the same libs than for INCLUDE_DIRS
364 ### ${MYSQL_LIBRARIES}
366 creaMaracasVisu_CutModule_interface
367 creaMaracasVisu_CutModule_kernel
368 creaMaracasVisu_CutModule2_interface
369 creaMaracasVisu_CutModule2_kernel
372 ### ILPDcontrolerInterface
375 #===========================================================================
377 #===========================================================================
378 # SET TO TRUE TO HAVE INFORMATION ON LIBRARIES FOUND DURING CMAKE CONFIGURE
379 SET(FIND_PACKAGE_VERBOSE TRUE)
380 #===========================================================================
382 #===========================================================================
383 # END OF USER SECTION
384 #===========================================================================
390 #===========================================================================
391 # Include configuration script
392 INCLUDE(Configure.cmake)
393 #===========================================================================
395 #===========================================================================
397 #===========================================================================
399 ### ADD_SUBDIRECTORY( ../../src/interface/wxWindows/ILPD ILPD )