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