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