]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/CMakeLists.txt
compila
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / CMakeLists.txt
1 # This directory should only be build if wxWindows and VTK can be found
2
3
4 #-----------------------------------------------------------------------------
5 # Headers Requeridas - Required Headers
6 #-----------------------------------------------------------------------------
7 INCLUDE_DIRECTORIES(
8 "C:/Creatis/MaracasTools/OSGi/src"
9 "C:/Creatis/MaracasTools/Include"
10 "/home/jpr/Creatis/Maracas/src/interface/wxWindows"
11 )
12
13 #-----------------------------------------------------------------------------
14 # Lib directory
15 #-----------------------------------------------------------------------------
16 LINK_DIRECTORIES(
17 "C:/Creatis/MaracasTools/OSGi/bin/Debug"
18 )
19
20 #-----------------------------------------------------------------------------
21 # Source file list
22 #-----------------------------------------------------------------------------
23 SET(MARACAS_TOOLS_SOURCES
24     "tools/MaracasTools.h"
25     "tools/MaracasTools.cpp"
26 )
27
28 #-----------------------------------------------------------------------------
29 # Project MaracasTools in workspace
30 #-----------------------------------------------------------------------------
31 ##EED 6 aout 2007
32 ##ADD_LIBRARY(MaracasTools ${MARACAS_TOOLS_SOURCES})
33
34
35 #-----------------------------------------------------------------------------
36 # Required libraries (dll o so)
37 #-----------------------------------------------------------------------------
38
39 ##EED 6 aout 2007
40 ##TARGET_LINK_LIBRARIES(MaracasTools OSGi ${maracas_WXWIDGETS_LIBRARIES} )
41
42
43
44 #SUBDIRS(ILPD)
45
46
47 #GSLobj need GSL
48 #INCLUDE_DIRECTORIES(${GSL_INCLUDE_DIR})
49
50 #kernel need gdcm
51 #INCLUDE_DIRECTORIES(${GDCM_INCLUDE_DIR})
52
53
54 #TODO for a nice VC++ we need to add header file...
55 SET(MARACAS_LIB_SRCS
56   manualContour.cpp
57   manualContour.h
58   marDictionary.cxx
59   marDictionary.h
60   wxMaracas3DBrowser.cxx
61   wxMaracas3DBrowser.h
62 #  wxMaracasDataBrowser.cxx
63 #  wxMaracasDataBrowser.h
64   wxMaracasImageBrowser.cxx
65   wxMaracasImageBrowser.h
66   wxMaracasFrame.cxx
67   wxMaracasFrame.h
68   wxMaracasParametersDialog.cxx
69   wxMaracasParametersDialog.h
70   widgets/wxParametersDialog.cpp
71   widgets/wxParametersDialog.h
72   wxMaracasHelpDialog.cxx
73   wxMaracasHelpDialog.h
74   wxMaracasQuantification.cxx
75   wxMaracasQuantification.h
76   widgets/wxVTKRenderWindowInteractor.cxx
77   widgets/wxVTKRenderWindowInteractor.h
78   widgets/wxVTKRenderWindowInteractorEditContour.cxx
79   widgets/wxVTKRenderWindowInteractorEditContour.h
80   widgets/vtk3DSurfaceWidget.cxx
81   widgets/vtk3DSurfaceWidget.h
82   widgets/vtk3DQuantSurfaceWidget.cxx
83   widgets/vtk3DQuantSurfaceWidget.h
84   widgets/vtk2DQuantSliceWidget.cxx
85   widgets/vtk2DQuantSliceWidget.h
86   widgets/wxSurfaceWidget.cxx
87   widgets/wxSurfaceWidget.h
88   widgets/wxImageBrowserWdg.cxx
89   widgets/wxImageBrowserWdg.h
90   widgets/wxImageViewerWidget.cxx
91   widgets/wxImageViewerWidget.h
92   widgets/vtkClosePolyData.cxx
93   widgets/vtkClosePolyData.h
94 #  widgets/vtkImagePolyDataSeedConnectivity.cxx
95 #  widgets/vtkImagePolyDataSeedConnectivity.h
96 #  widgets/vtkInteractorStyleCutter.cxx
97 #  widgets/vtkInteractorStyleCutter.h
98 #  widgets/wxChart.cxx
99 #  widgets/wxChart.h
100   widgets/wxQuantificationWidget.cxx
101   widgets/wxQuantificationWidget.h
102   wxMaracas_ManualTree_MPRDlg.cxx
103   wxMaracas_ManualTree_MPRDlg.h
104   wxMaracas_ManualTree_MPR.cxx
105   wxMaracas_ManualTree_MPR.h
106   widgets/wxManualTree_MPRWidget.cxx
107   widgets/wxManualTree_MPRWidget.h
108   widgets/wxManualRegistration3D.cxx
109   widgets/wxManualRegistration3D.h
110   wxMaracasMPR.cxx
111   wxMaracasMPR.h
112   widgets/wxMPRWidget.cxx
113   widgets/wxMPRWidget.h
114   widgets/wxMPRBaseData.cxx
115   widgets/wxMPRBaseData.h
116   widgets/wxVtkBaseView.cxx
117   widgets/wxVtkBaseView.h
118   widgets/wxQuantificationWidget_base.cxx
119   widgets/wxQuantificationWidget_base.h
120   widgets/UtilVtk3DGeometriSelection.cxx
121   widgets/UtilVtk3DGeometriSelection.h
122   res/wxInterface.rc
123 )
124
125
126 ADD_LIBRARY(MaracasInterfaceWX ${MARACAS_LIB_SRCS} )
127 TARGET_LINK_LIBRARIES(MaracasInterfaceWX
128   ${maracas_WXWIDGETS_LIBRARIES}
129   MaracasAlgorithm
130   MaracasKernel
131   MaracasSnakeContour
132   #${LIBIDO_LIBRARIES}
133   #${GLIB_LIBRARIES}
134   vtkCommon  vtkFiltering  vtkGraphics  vtkIO  vtkImaging  vtkRendering  vtkHybrid
135 )
136
137
138
139
140 #TODO for a nice VC++ we need to add header file...
141 SET(MARACAS_LIB_SRCS_02
142   manualContour.cpp
143   manualContour.h
144   marDictionary.cxx
145   marDictionary.h
146   wxMaracas3DBrowser.cxx
147   wxMaracas3DBrowser.h
148   wxMaracasDataBrowser.cxx
149   wxMaracasDataBrowser.h
150   wxMaracasImageBrowser.cxx
151   wxMaracasImageBrowser.h
152   wxMaracasImageBrowser02.cxx
153   wxMaracasImageBrowser02.h
154   widgets/wxReadingPriorityPanel.cpp
155   widgets/wxReadingPriorityPanel.h
156   wxMaracasFrame02.cxx
157   wxMaracasFrame02.h
158   wxILPDwithImage.cxx
159   wxILPDwithImage.h
160   wxMaracasParametersDialog.cxx
161   wxMaracasParametersDialog.h
162   widgets/wxParametersDialog.cpp
163   widgets/wxParametersDialog.h
164   wxMaracasHelpDialog.cxx
165   wxMaracasHelpDialog.h
166   wxMaracasQuantification.cxx
167   wxMaracasQuantification.h
168   widgets/wxVTKRenderWindowInteractor.cxx
169   widgets/wxVTKRenderWindowInteractor.h
170   widgets/wxVTKRenderWindowInteractorEditContour.cxx
171   widgets/wxVTKRenderWindowInteractorEditContour.h
172   widgets/vtk3DSurfaceWidget.cxx
173   widgets/vtk3DSurfaceWidget.h
174   widgets/vtk3DQuantSurfaceWidget.cxx
175   widgets/vtk3DQuantSurfaceWidget.h
176   widgets/vtk2DQuantSliceWidget.cxx
177   widgets/vtk2DQuantSliceWidget.h
178   widgets/vtk3DSurfaceSTLWidget.cxx
179   widgets/vtk3DSurfaceSTLWidget.h
180   widgets/wxSurfaceSTLWidget.cxx
181   widgets/wxSurfaceSTLWidget.h
182   widgets/InterfaceVtkPanelWidgets.cxx
183   widgets/InterfaceVtkPanelWidgets.h
184   widgets/wxSurfaceWidget.cxx
185   widgets/wxSurfaceWidget.h
186   widgets/wxImageBrowserWdg.cxx
187   widgets/wxImageBrowserWdg.h
188   widgets/wxImageViewerWidget.cxx
189   widgets/wxImageViewerWidget.h
190   widgets/vtkClosePolyData.cxx
191   widgets/vtkClosePolyData.h
192   widgets/vtkImagePolyDataSeedConnectivity.cxx
193   widgets/vtkImagePolyDataSeedConnectivity.h
194   widgets/vtkInteractorStyleCutter.cxx
195   widgets/vtkInteractorStyleCutter.h
196 #  widgets/wxChart.cxx
197 #  widgets/wxChart.h
198   widgets/wxQuantificationWidget.cxx
199   widgets/wxQuantificationWidget.h
200   wxMaracasMPR.cxx
201   wxMaracasMPR.h
202   wxMaracasEmptyPanel.cxx
203   wxMaracasEmptyPanel.h
204   widgets/wxEmptyPanelWidget.cxx
205   widgets/wxEmptyPanelWidget.h
206   wxMaracasEmptyPanel_2.cxx
207   wxMaracasEmptyPanel_2.h
208   widgets/wxEmptyPanelWidget_2.cxx
209   widgets/wxEmptyPanelWidget_2.h
210   widgets/wxMPRWidget.cxx
211   widgets/wxMPRWidget.h
212   widgets/wxMPRBaseData.cxx
213   widgets/wxMPRBaseData.h
214   widgets/wxVtkBaseView.cxx
215   widgets/wxVtkBaseView.h
216   widgets/wxMaracas_ViewerWidget.cxx
217   widgets/wxMaracas_ViewerWidget.h
218   widgets/wxMaracas_N_ViewersWidget.cxx
219   widgets/wxMaracas_N_ViewersWidget.h
220   wxMaracasProcessingCT.cxx
221   wxMaracasProcessingCT.h
222   widgets/wxProcessingCTWidget.cxx
223   widgets/wxProcessingCTWidget.h
224   wxMaracasQuantificationCT.cxx
225   wxMaracasQuantificationCT.h
226   widgets/wxQuantificationWidgetCT.cxx
227   widgets/wxQuantificationWidgetCT.h
228   widgets/wxQuantificationWidget_base.cxx
229   widgets/wxQuantificationWidget_base.h
230   wxMaracasEmptyPanel_3.cxx
231   wxMaracasEmptyPanel_3.h
232   widgets/wxEmptyPanel_3_Widget.cxx
233   widgets/wxEmptyPanel_3_Widget.h
234   wxMaracas_ManualTree_MPRDlg.cxx
235   wxMaracas_ManualTree_MPRDlg.h
236   wxMaracas_ManualTree_MPR.cxx
237   wxMaracas_ManualTree_MPR.h
238   widgets/wxManualTree_MPRWidget.cxx
239   widgets/wxManualTree_MPRWidget.h
240   widgets/wxManualRegistration3D.cxx
241   widgets/wxManualRegistration3D.h
242   res/wxInterface.rc
243   widgets/ContourView.h
244   widgets/ContourView.cxx
245   widgets/PointView.h
246   widgets/PointView.cxx
247   widgets/LineView.h
248   widgets/LineView.cxx
249   wxMaracasPathology_01.cxx
250   wxMaracasPathology_01.h
251   widgets/wxPathologyWidget_01.cxx
252   widgets/wxPathologyWidget_01.h
253   widgets/wxSTLWidget_02.cxx
254   widgets/wxSTLWidget_02.h
255   widgets/wxSTLWidget_03.cxx
256   widgets/wxSTLWidget_03.h
257   widgets/UtilVtk3DGeometriSelection.cxx
258   widgets/UtilVtk3DGeometriSelection.h
259   manualContourContainer.cxx
260   manualContourContainer.h
261   wxMaracas_ManualSegmentation_MPR.cxx
262   wxMaracas_ManualSegmentation_MPR.h
263   widgets/wxManualSegmentation_MPRWidget.cxx
264   widgets/wxManualSegmentation_MPRWidget.h
265   wxMaracas_SegmentationFM3D.cxx
266   wxMaracas_SegmentationFM3D.h
267   widgets/wxSegmentationFM3DWidget.cxx
268   widgets/wxSegmentationFM3DWidget.h
269   wxMaracas_ManualContour_Panel.cxx
270   wxMaracas_ManualContour_Panel.h
271
272 ##### Contour Edition - JS - Juan Sebastian 
273   #Contour/ContourPropagation.cxx
274   #Contour/ContourPropagation.h
275   #Contour/ExtractControlPoints2D.cxx
276   #Contour/ExtractControlPoints2D.h
277   #Contour/ContoursIntersection.cxx
278   #Contour/ContoursIntersection.h
279   #Contour/vectorFunctions.cxx
280   #Contour/vectorFunctions.h
281   #Contour/Propagation.cxx
282   #Contour/Propagation.h
283
284 #####pPlotter classes - Monica/Silvia
285   #1widgets/pPlotter/HistogramDialog.cxx
286   #1widgets/pPlotter/HistogramDialog.h
287   #1widgets/pPlotter/HistogramWidget.cxx
288   #1widgets/pPlotter/HistogramWidget.h
289   #1widgets/pPlotter/pHistogram.cxx
290   #1widgets/pPlotter/pHistogram.h
291   #1widgets/pPlotter/mBarRange.cxx
292   #1widgets/pPlotter/mBarRange.h
293   #1widgets/pPlotter/pLogicalFunction.cxx
294   #1widgets/pPlotter/pLogicalFunction.h
295   #1widgets/pPlotter/pGraphicalFunction.h
296   #1widgets/pPlotter/pGraphicalFunction.cxx
297   #1widgets/pPlotter/pFunctionPoint.cxx
298   #1widgets/pPlotter/pFunctionPoint.h
299   #1widgets/pPlotter/pPlotterWindow.cxx
300   #1widgets/pPlotter/pPlotterWindow.h
301   #1widgets/pPlotter/pPlotterLayer.cxx
302   #1widgets/pPlotter/pPlotterLayer.h
303   #1widgets/pPlotter/pPlotterScaleX.h
304   #1widgets/pPlotter/pPlotterScaleX.cxx
305   #1widgets/pPlotter/pPlotterScaleY.h
306   #1widgets/pPlotter/pPlotterScaleY.cxx
307   #1widgets/pPlotter/pColorBar.h
308   #1widgets/pPlotter/pColorBar.cxx
309   #1widgets/pPlotter/pFigure.h
310   #1widgets/pPlotter/pFigure.cxx
311   #1widgets/pPlotter/pColorPoint.h
312   #1widgets/pPlotter/pColorPoint.cxx
313   #1widgets/pPlotter/pPlotter.h
314   #1widgets/pPlotter/pPlotter.cxx
315   #1widgets/pPlotter/mathplot.cxx
316   #1widgets/pPlotter/mathplot.h
317   #1widgets/pPlotter/MaximumsDialog.cxx
318   #1widgets/pPlotter/MaximumsDialog.h
319 # widgets/pPlotter/DegradeRectangle.cxx
320 # widgets/pPlotter/DegradeRectangle.h
321   #1widgets/pPlotter/LogicalColorBar.cxx
322   #1widgets/pPlotter/LogicalColorBar.h
323   #1widgets/pPlotter/Histogram.cxx
324   #1widgets/pPlotter/Histogram.h
325
326 )
327
328
329
330 ADD_LIBRARY(MaracasInterface02WX ${MARACAS_LIB_SRCS_02} )
331 TARGET_LINK_LIBRARIES(MaracasInterface02WX
332   ${maracas_WXWIDGETS_LIBRARIES}
333   MaracasAlgorithm
334   MaracasKernel
335   MaracasSnakeContour
336 ##EED 6 aout 2007
337 ##  MaracasTools
338   #${LIBIDO_LIBRARIES}
339   ${GLIB_LIBRARIES}
340   ${GDCM_LIBRARIES}
341   vtkCommon  vtkFiltering  vtkGraphics  vtkIO  vtkImaging  vtkRendering vtkHybrid
342 )
343
344 SET(MARACAS_WIN32LIB_SRCS
345     MaracasDll.h
346     MaracasDll.cpp
347     StdAfx.h
348     StdAfx.cpp
349     wxMaracasApp.cxx
350     wxMaracasApp.h
351     ../../kernel/marSimpleDicom.cpp
352     ../../kernel/marSimpleDicom.h
353     res/wxInterface.rc
354   )
355
356
357 #ADD_LIBRARY(MaracasWin32Lib SHARED ${MARACAS_WIN32LIB_SRCS} )
358 #TARGET_LINK_LIBRARIES(MaracasWin32Lib
359 #       MaracasAlgorithm    
360 #       MaracasKernel    
361 #       MaracasSnakeContour    
362 #       MaracasInterfaceWX 
363 #       ${WXWIDGETS_LIBRARIES}
364 #       vtkCommon  vtkFiltering  vtkGraphics  vtkIO  vtkImaging  vtkRendering vtkHybrid vtkPatented
365 #)
366
367
368
369 IF(WIN32)
370   SET(MARACAS_WIN32APP_SRCS
371     wxMaracasApp02.cxx
372     wxMaracasApp02.h
373     ../../kernel/marGdcmDicom.cpp
374     ../../kernel/marGdcmDicom.h
375     res/wxInterface.rc
376   )
377   set(CMAKE_MFC_FLAG 2)
378   ADD_EXECUTABLE(maracas WIN32 ${MARACAS_WIN32APP_SRCS} )
379
380   TARGET_LINK_LIBRARIES(maracas
381 #       debug msvcrtd
382 #       debug msvcprtd
383 #       optimized msvcrt
384 #       optimized msvcprt
385         MaracasAlgorithm    MaracasKernel    MaracasSnakeContour    MaracasInterface02WX
386         vtkCommon  vtkFiltering  vtkGraphics  vtkIO  vtkImaging  vtkRendering vtkHybrid 
387 #vtkPatented
388         vtkWidgets vtkVolumeRendering
389
390         ILPDInterface ILPDModel ILPDcontrolerInterface 
391         ${MYSQL_LIBRARIES} 
392         ${maracas_WXWIDGETS_LIBRARIES}
393         ${GDCM_LIBRARIES} 
394  )
395
396
397 ###
398 #  SET(WIDO_WIN32APP_SRCS
399 #    wxWidoApp.cxx
400 #    wxWidoApp.h
401 #  )
402 #  ADD_EXECUTABLE(wido_wx_test WIN32 ${WIDO_WIN32APP_SRCS} )
403 #  TARGET_LINK_LIBRARIES(wido_wx_test
404 #       MaracasInterface02WX
405 #       vtkCommon  vtkFiltering  vtkGraphics  vtkIO  vtkImaging  vtkRendering vtkHybrid vtkPatented
406 #       ${WXWIDGETS_LIBRARIES}
407 #       debug msvcrtd
408 #       debug msvcprtd
409 #       optimized msvcrt
410 #       optimized msvcprt
411 #  )
412 #
413 ##
414
415
416   IF(MYSQL_PATH)
417
418 ##----Copy Debug cofiguration and DLLs---
419
420     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Debug )
421     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Debug/MySql/data )
422     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Debug/MySql/share )
423     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Debug/MySql/share/english )
424     CONFIGURE_FILE( ${MARACAS_SOURCE_DIR}/configuration/my.ini        ${LIBRARY_OUTPUT_PATH}/debug/my.ini                           COPYONLY        )
425     CONFIGURE_FILE( ${MARACAS_SOURCE_DIR}/configuration/errmsg.txt    ${LIBRARY_OUTPUT_PATH}/debug/MySql/share/english/errmsg.txt   COPYONLY        )
426     CONFIGURE_FILE( ${MARACAS_SOURCE_DIR}/configuration/errmsg.sys    ${LIBRARY_OUTPUT_PATH}/debug/MySql/share/english/errmsg.sys   COPYONLY        )
427
428     CONFIGURE_FILE( ${LIBIDO_BINARY_DIR}/lib/debug/libIdo.dll   ${LIBRARY_OUTPUT_PATH}/debug/libIdo.dll COPYONLY        )
429     CONFIGURE_FILE( C:/Creatis/glib-1.3/src/glib/glib-1.3.dll   ${LIBRARY_OUTPUT_PATH}/debug/glib-1.3.dll       COPYONLY        )
430
431     IF ( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_net_vc_custom.dll )
432       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_net_vc_custom.dll      ${LIBRARY_OUTPUT_PATH}/debug/wxbase28d_net_vc_custom.dll        COPYONLY        )
433       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_odbc_vc_custom.dll     ${LIBRARY_OUTPUT_PATH}/debug/wxbase28d_odbc_vc_custom.dll       COPYONLY        )
434       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_vc_custom.dll          ${LIBRARY_OUTPUT_PATH}/debug/wxbase28d_vc_custom.dll            COPYONLY        )
435       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_xml_vc_custom.dll      ${LIBRARY_OUTPUT_PATH}/debug/wxbase28d_xml_vc_custom.dll        COPYONLY        )
436       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_adv_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_adv_vc_custom.dll         COPYONLY        )
437       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_aui_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_aui_vc_custom.dll         COPYONLY        )
438       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_core_vc_custom.dll      ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_core_vc_custom.dll        COPYONLY        )
439       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_gl_vc_custom.dll        ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_gl_vc_custom.dll          COPYONLY        )
440       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_html_vc_custom.dll      ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_html_vc_custom.dll        COPYONLY        )
441       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_media_vc_custom.dll     ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_media_vc_custom.dll       COPYONLY        )
442       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_qa_vc_custom.dll        ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_qa_vc_custom.dll          COPYONLY        )
443       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_richtext_vc_custom.dll  ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_richtext_vc_custom.dll    COPYONLY        )
444       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_xrc_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_xrc_vc_custom.dll         COPYONLY        )
445       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_aui_vc_custom.dll                 ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28_aui_vc_custom.dll                 COPYONLY        ) 
446     ELSE ( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_net_vc_custom.dll )
447         MESSAGE (FATAL_ERROR, " wxWidgets dlls not found (Debug copy dlls)")
448     ENDIF( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_net_vc_custom.dll )
449
450     IF ( EXISTS ${MYSQL_PATH}/Embedded/DLL/debug/libmysqld.dll )
451       CONFIGURE_FILE( ${MYSQL_PATH}/Embedded/DLL/debug/libmysqld.dll    ${LIBRARY_OUTPUT_PATH}/debug/libmysqld.dll                    COPYONLY        )
452     ELSE ( EXISTS ${MYSQL_PATH}/Embedded/DLL/debug/libmysqld.dll )
453           MESSAGE (FATAL_ERROR, " libmysqld.dll not found (Debug copy dlls)")
454     ENDIF( EXISTS ${MYSQL_PATH}/Embedded/DLL/debug/libmysqld.dll )
455
456         
457     IF ( EXISTS ${GDCM_DIR}/../../bin/vtkgdcm.dll )
458       CONFIGURE_FILE( ${GDCM_DIR}/../../bin/gdcmopenjpeg.dll        ${LIBRARY_OUTPUT_PATH}/debug/gdcmopenjpeg.dll                 COPYONLY        )
459       CONFIGURE_FILE( ${GDCM_DIR}/../../bin/vtkgdcm.dll             ${LIBRARY_OUTPUT_PATH}/debug/vtkgdcm.dll                      COPYONLY        )
460       CONFIGURE_FILE( ${GDCM_DIR}/../../bin/gdcmjpeg16.dll          ${LIBRARY_OUTPUT_PATH}/debug/gdcmjpeg16.dll                   COPYONLY        )
461       CONFIGURE_FILE( ${GDCM_DIR}/../../bin/gdcmjpeg12.dll          ${LIBRARY_OUTPUT_PATH}/debug/gdcmjpeg12.dll                   COPYONLY        )
462       CONFIGURE_FILE( ${GDCM_DIR}/../../bin/gdcmjpeg8.dll           ${LIBRARY_OUTPUT_PATH}/debug/gdcmjpeg8.dll                    COPYONLY        )
463       CONFIGURE_FILE( ${GDCM_DIR}/../../bin/gdcm.dll                ${LIBRARY_OUTPUT_PATH}/debug/gdcm.dll                         COPYONLY        )
464     ELSE ( EXISTS ${GDCM_DIR}/../../bin/vtkgdcm.dll )
465           MESSAGE (FATAL_ERROR, " gdcm dlls not found (Debug copy dlls)    )")
466     ENDIF( EXISTS ${GDCM_DIR}/../../bin/vtkgdcm.dll )
467
468     IF ( EXISTS ${VTK_DIR}/../../bin/vtkCommon.dll )
469       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkCommon.dll            ${LIBRARY_OUTPUT_PATH}/debug/vtkCommon.dll                    COPYONLY        )
470       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkDICOMParser.dll       ${LIBRARY_OUTPUT_PATH}/debug/vtkDICOMParser.dll               COPYONLY        )
471       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkexpat.dll             ${LIBRARY_OUTPUT_PATH}/debug/vtkexpat.dll                     COPYONLY        )
472       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkFiltering.dll         ${LIBRARY_OUTPUT_PATH}/debug/vtkFiltering.dll                 COPYONLY        )
473       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkfreetype.dll          ${LIBRARY_OUTPUT_PATH}/debug/vtkfreetype.dll                  COPYONLY        )
474       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkftgl.dll              ${LIBRARY_OUTPUT_PATH}/debug/vtkftgl.dll                      COPYONLY        )
475       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkGraphics.dll          ${LIBRARY_OUTPUT_PATH}/debug/vtkGraphics.dll                  COPYONLY        )
476       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkHybrid.dll            ${LIBRARY_OUTPUT_PATH}/debug/vtkHybrid.dll                    COPYONLY        )
477       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkImaging.dll           ${LIBRARY_OUTPUT_PATH}/debug/vtkImaging.dll                   COPYONLY        )
478       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkIO.dll                ${LIBRARY_OUTPUT_PATH}/debug/vtkIO.dll                        COPYONLY        )
479       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkjpeg.dll              ${LIBRARY_OUTPUT_PATH}/debug/vtkjpeg.dll                      COPYONLY        )
480 #      CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkPatented.dll          ${LIBRARY_OUTPUT_PATH}/debug/vtkPatented.dll                  COPYONLY        )
481       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkWidgets.dll          ${LIBRARY_OUTPUT_PATH}/debug/vtkWidgets.dll                  COPYONLY        )
482       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkVolumeRendering.dll          ${LIBRARY_OUTPUT_PATH}/debug/vtkVolumeRendering.dll                  COPYONLY        )
483       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkexoIIc.dll          ${LIBRARY_OUTPUT_PATH}/debug/vtkexoIIc.dll                  COPYONLY        )
484       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkNetCDF.dll          ${LIBRARY_OUTPUT_PATH}/debug/vtkNetCDF.dll                  COPYONLY        )
485       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkpng.dll               ${LIBRARY_OUTPUT_PATH}/debug/vtkpng.dll                       COPYONLY        )
486       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkRendering.dll         ${LIBRARY_OUTPUT_PATH}/debug/vtkRendering.dll                 COPYONLY        )
487       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtktiff.dll              ${LIBRARY_OUTPUT_PATH}/debug/vtktiff.dll                      COPYONLY        )
488       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkzlib.dll              ${LIBRARY_OUTPUT_PATH}/debug/vtkzlib.dll                      COPYONLY        )
489     ELSE ( EXISTS ${VTK_DIR}/../../bin/vtkCommon.dll )
490            MESSAGE (FATAL_ERROR, " VTK dlls not found (Debug copy dlls)")
491     ENDIF( EXISTS ${VTK_DIR}/../../bin/vtkCommon.dll )
492
493     IF ( EXISTS ${ITK_DIR}/../../bin/ITKCommon.dll )
494       CONFIGURE_FILE( ${ITK_DIR}/../../bin/ITKCommon.dll            ${LIBRARY_OUTPUT_PATH}/debug/ITKCommon.dll                    COPYONLY        )
495     ELSE ( EXISTS ${ITK_DIR}/../../bin/ITKCommon.dll )
496           MESSAGE (FATAL_ERROR, " ITK dlls not found (Debug copy dlls)")
497     ENDIF( EXISTS ${ITK_DIR}/../../bin/ITKCommon.dll )
498
499
500
501 ##----Copy Release cofiguration and DLLs---
502
503     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Release )
504     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Release/MySql/data )
505     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Release/MySql/share )
506     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Release/MySql/share/english )
507     CONFIGURE_FILE( ${MARACAS_SOURCE_DIR}/configuration/my.ini        ${LIBRARY_OUTPUT_PATH}/release/my.ini                         COPYONLY        )
508     CONFIGURE_FILE( ${MARACAS_SOURCE_DIR}/configuration/errmsg.txt    ${LIBRARY_OUTPUT_PATH}/release/MySql/share/english/errmsg.txt COPYONLY        )
509     CONFIGURE_FILE( ${MARACAS_SOURCE_DIR}/configuration/errmsg.sys    ${LIBRARY_OUTPUT_PATH}/release/MySql/share/english/errmsg.sys COPYONLY        )
510
511     CONFIGURE_FILE( ${LIBIDO_BINARY_DIR}/lib/release/libIdo.dll ${LIBRARY_OUTPUT_PATH}/release/libIdo.dll       COPYONLY        )
512     CONFIGURE_FILE( C:/Creatis/glib-1.3/src/glib/glib-1.3.dll   ${LIBRARY_OUTPUT_PATH}/release/glib-1.3.dll     COPYONLY        )
513
514     IF ( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_net_vc_custom.dll )
515       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_net_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/release/wxbase28_net_vc_custom.dll       COPYONLY        )
516       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_odbc_vc_custom.dll      ${LIBRARY_OUTPUT_PATH}/release/wxbase28_odbc_vc_custom.dll      COPYONLY        )
517       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_vc_custom.dll           ${LIBRARY_OUTPUT_PATH}/release/wxbase28_vc_custom.dll           COPYONLY        )
518       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_xml_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/release/wxbase28_xml_vc_custom.dll       COPYONLY        )
519       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_adv_vc_custom.dll        ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_adv_vc_custom.dll        COPYONLY        )
520       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_aui_vc_custom.dll        ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_aui_vc_custom.dll        COPYONLY        )
521       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_core_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_core_vc_custom.dll       COPYONLY        )
522       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_gl_vc_custom.dll         ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_gl_vc_custom.dll         COPYONLY        )
523       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_html_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_html_vc_custom.dll       COPYONLY        )
524       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_media_vc_custom.dll      ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_media_vc_custom.dll      COPYONLY        )
525       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_richtext_vc_custom.dll   ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_richtext_vc_custom.dll   COPYONLY        )
526       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_qa_vc_custom.dll         ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_qa_vc_custom.dll         COPYONLY        )
527       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_xrc_vc_custom.dll        ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_xrc_vc_custom.dll        COPYONLY        )
528       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_aui_vc_custom.dll                ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28_aui_vc_custom.dll                  COPYONLY        ) 
529     ELSE ( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_net_vc_custom.dll )
530         MESSAGE (FATAL_ERROR, " wxWidgets dlls not found (Release copy dlls)")
531     ENDIF( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_net_vc_custom.dll )
532
533
534     IF ( EXISTS ${MYSQL_PATH}/Embedded/DLL/release/libmysqld.dll )
535       CONFIGURE_FILE( ${MYSQL_PATH}/Embedded/DLL/release/libmysqld.dll  ${LIBRARY_OUTPUT_PATH}/release/libmysqld.dll                  COPYONLY        )
536     ELSE ( EXISTS ${MYSQL_PATH}/Embedded/DLL/release/libmysqld.dll )
537         MESSAGE (FATAL_ERROR, " libmysqld.dll not found (Release copy dlls)")
538     ENDIF( EXISTS ${MYSQL_PATH}/Embedded/DLL/release/libmysqld.dll )
539
540     IF ( EXISTS ${GDCM_DIR}/../../bin/vtkgdcm.dll )
541       CONFIGURE_FILE( ${GDCM_DIR}/../../bin/gdcmopenjpeg.dll      ${LIBRARY_OUTPUT_PATH}/release/gdcmopenjpeg.dll                 COPYONLY        )
542       CONFIGURE_FILE( ${GDCM_DIR}/../../bin/vtkgdcm.dll           ${LIBRARY_OUTPUT_PATH}/release/vtkgdcm.dll                    COPYONLY        )
543       CONFIGURE_FILE( ${GDCM_DIR}/../../bin/gdcmjpeg16.dll        ${LIBRARY_OUTPUT_PATH}/release/gdcmjpeg16.dll                 COPYONLY        )
544       CONFIGURE_FILE( ${GDCM_DIR}/../../bin/gdcmjpeg12.dll        ${LIBRARY_OUTPUT_PATH}/release/gdcmjpeg12.dll                 COPYONLY        )
545       CONFIGURE_FILE( ${GDCM_DIR}/../../bin/gdcmjpeg8.dll         ${LIBRARY_OUTPUT_PATH}/release/gdcmjpeg8.dll                  COPYONLY        )
546       CONFIGURE_FILE( ${GDCM_DIR}/../../bin/gdcm.dll              ${LIBRARY_OUTPUT_PATH}/release/gdcm.dll                       COPYONLY        )
547     ELSE ( EXISTS ${GDCM_DIR}/../../bin/vtkgdcm.dll )
548           MESSAGE (FATAL_ERROR, " gdcm dlls not found (Release copy dlls)")
549     ENDIF( EXISTS ${GDCM_DIR}/../../bin/vtkgdcm.dll )
550
551     IF ( EXISTS ${VTK_DIR}/../../bin/vtkCommon.dll )
552       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkCommon.dll            ${LIBRARY_OUTPUT_PATH}/release/vtkCommon.dll                    COPYONLY        )
553       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkDICOMParser.dll       ${LIBRARY_OUTPUT_PATH}/release/vtkDICOMParser.dll               COPYONLY        )
554       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkexpat.dll             ${LIBRARY_OUTPUT_PATH}/release/vtkexpat.dll                     COPYONLY        )
555       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkFiltering.dll         ${LIBRARY_OUTPUT_PATH}/release/vtkFiltering.dll                 COPYONLY        )
556       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkfreetype.dll          ${LIBRARY_OUTPUT_PATH}/release/vtkfreetype.dll                  COPYONLY        )
557       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkftgl.dll              ${LIBRARY_OUTPUT_PATH}/release/vtkftgl.dll                      COPYONLY        )
558       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkGraphics.dll          ${LIBRARY_OUTPUT_PATH}/release/vtkGraphics.dll                  COPYONLY        )
559       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkHybrid.dll            ${LIBRARY_OUTPUT_PATH}/release/vtkHybrid.dll                    COPYONLY        )
560       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkImaging.dll           ${LIBRARY_OUTPUT_PATH}/release/vtkImaging.dll                   COPYONLY        )
561       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkIO.dll                ${LIBRARY_OUTPUT_PATH}/release/vtkIO.dll                        COPYONLY        )
562       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkjpeg.dll              ${LIBRARY_OUTPUT_PATH}/release/vtkjpeg.dll                      COPYONLY        )
563 #      CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkPatented.dll          ${LIBRARY_OUTPUT_PATH}/release/vtkPatented.dll                  COPYONLY        )
564       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkWidgets.dll          ${LIBRARY_OUTPUT_PATH}/release/vtkWidgets.dll                  COPYONLY        )
565       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkVolumeRendering.dll          ${LIBRARY_OUTPUT_PATH}/release/vtkVolumeRendering.dll                  COPYONLY        )
566       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkexoIIc.dll          ${LIBRARY_OUTPUT_PATH}/release/vtkexoIIc.dll                  COPYONLY        )
567       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkNetCDF.dll          ${LIBRARY_OUTPUT_PATH}/release/vtkNetCDF.dll                  COPYONLY        )
568       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkpng.dll               ${LIBRARY_OUTPUT_PATH}/release/vtkpng.dll                       COPYONLY        )
569       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkRendering.dll         ${LIBRARY_OUTPUT_PATH}/release/vtkRendering.dll                 COPYONLY        )
570       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtktiff.dll              ${LIBRARY_OUTPUT_PATH}/release/vtktiff.dll                      COPYONLY        )
571       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkzlib.dll              ${LIBRARY_OUTPUT_PATH}/release/vtkzlib.dll                      COPYONLY        )
572     ELSE ( EXISTS ${VTK_DIR}/../../bin/vtkCommon.dll )
573           MESSAGE (FATAL_ERROR, " VTK dlls not found (Release copy dlls)")
574     ENDIF( EXISTS ${VTK_DIR}/../../bin/vtkCommon.dll )
575
576
577     IF ( EXISTS ${ITK_DIR}/../../bin/ITKCommon.dll )
578       CONFIGURE_FILE( ${ITK_DIR}/../../bin/ITKCommon.dll            ${LIBRARY_OUTPUT_PATH}/release/ITKCommon.dll                    COPYONLY        )
579     ELSE ( EXISTS ${ITK_DIR}/../../bin/ITKCommon.dll )
580           MESSAGE (FATAL_ERROR, " ITK dlls not found (Release copy dlls)")
581     ENDIF( EXISTS ${ITK_DIR}/../../bin/ITKCommon.dll )
582
583 ENDIF(MYSQL_PATH)
584
585 ELSE(WIN32)
586
587
588
589 #  ADD_EXECUTABLE(maracas wxMaracasApp.cxx )
590 # TARGET_LINK_LIBRARIES(maracas
591 #    ${WXWIDGETS_LIBRARIES}
592 #    MaracasInterfaceWX
593 #    #${GDCM_LIBRARIES}
594 #  )
595
596
597
598   SET(MARACAS_LINUXAPP_SRCS
599     wxMaracasApp02.cxx
600     wxMaracasApp02.h
601     ../../kernel/marGdcmDicom.cpp
602     ../../kernel/marGdcmDicom.h
603 #    res/wxInterface.rc
604   )
605 #  set(CMAKE_MFC_FLAG 2)
606   ADD_EXECUTABLE(maracas ${MARACAS_LINUXAPP_SRCS} )
607
608
609   TARGET_LINK_LIBRARIES(maracas
610 #       debug msvcrtd
611 #       debug msvcprtd
612 #       optimized msvcrt
613 #       optimized msvcprt
614         MaracasAlgorithm    MaracasKernel    MaracasSnakeContour    MaracasInterface02WX
615         vtkCommon  vtkFiltering  vtkGraphics  vtkIO  vtkImaging  vtkRendering vtkHybrid 
616 #vtkPatented
617         vtkWidgets vtkVolumeRendering
618
619         ILPDcontrolerInterface
620         ILPDInterface 
621         ILPDModel 
622         ${MYSQL_LIBRARIES}
623         ${maracas_WXWIDGETS_LIBRARIES}
624         ${GDCM_LIBRARIES}
625  )
626
627
628 ENDIF(WIN32)
629 SUBDIRS(widgets)
630
631