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