]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/CMakeLists.txt
BUG histogram
[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
30 #-----------------------------------------------------------------------------
31 # Required libraries (dll o so)
32 #-----------------------------------------------------------------------------
33
34
35 #TODO for a nice VC++ we need to add header file...
36 SET(MARACAS_LIB_SRCS
37   manualContour.cpp
38   manualContour.h
39   marDictionary.cxx
40   marDictionary.h
41   wxMaracas3DBrowser.cxx
42   wxMaracas3DBrowser.h
43 #  wxMaracasDataBrowser.cxx
44 #  wxMaracasDataBrowser.h
45   wxMaracasImageBrowser.cxx
46   wxMaracasImageBrowser.h
47   wxMaracasFrame.cxx
48   wxMaracasFrame.h
49   wxMaracasParametersDialog.cxx
50   wxMaracasParametersDialog.h
51   widgets/wxParametersDialog.cpp
52   widgets/wxParametersDialog.h
53   wxMaracasHelpDialog.cxx
54   wxMaracasHelpDialog.h
55   wxMaracasQuantification.cxx
56   wxMaracasQuantification.h
57   wxMaracasIRMView.cxx
58   wxMaracasIRMView.h
59   
60         
61   widgets/wxVTKRenderWindowInteractor.cxx
62   widgets/wxVTKRenderWindowInteractor.h
63   widgets/wxVTKRenderWindowInteractorEditContour.cxx
64   widgets/wxVTKRenderWindowInteractorEditContour.h
65   widgets/vtk3DSurfaceWidget.cxx
66   widgets/vtk3DSurfaceWidget.h
67   widgets/vtk3DQuantSurfaceWidget.cxx
68   widgets/vtk3DQuantSurfaceWidget.h
69   widgets/vtk2DQuantSliceWidget.cxx
70   widgets/vtk2DQuantSliceWidget.h
71   widgets/wxSurfaceWidget.cxx
72   widgets/wxSurfaceWidget.h
73   widgets/wxImageBrowserWdg.cxx
74   widgets/wxImageBrowserWdg.h
75   widgets/wxImageViewerWidget.cxx
76   widgets/wxImageViewerWidget.h
77   widgets/vtkClosePolyData.cxx
78   widgets/vtkClosePolyData.h
79 #  widgets/vtkImagePolyDataSeedConnectivity.cxx
80 #  widgets/vtkImagePolyDataSeedConnectivity.h
81 #  widgets/vtkInteractorStyleCutter.cxx
82 #  widgets/vtkInteractorStyleCutter.h
83 #  widgets/wxChart.cxx
84 #  widgets/wxChart.h
85   widgets/wxQuantificationWidget.cxx
86   widgets/wxQuantificationWidget.h
87   wxMaracas_ManualTree_MPRDlg.cxx
88   wxMaracas_ManualTree_MPRDlg.h
89   wxMaracas_ManualTree_MPR.cxx
90   wxMaracas_ManualTree_MPR.h
91   widgets/wxManualTree_MPRWidget.cxx
92   widgets/wxManualTree_MPRWidget.h
93   widgets/wxManualRegistration3D.cxx
94   widgets/wxManualRegistration3D.h
95   wxMaracasMPR.cxx
96   wxMaracasMPR.h
97   widgets/wxMPRWidget.cxx
98   widgets/wxMPRWidget.h
99   widgets/wxMPRBaseData.cxx
100   widgets/wxMPRBaseData.h
101   widgets/wxVtkBaseView.cxx
102   widgets/wxVtkBaseView.h
103   widgets/wxQuantificationWidget_base.cxx
104   widgets/wxQuantificationWidget_base.h
105   widgets/UtilVtk3DGeometriSelection.cxx
106   widgets/UtilVtk3DGeometriSelection.h
107   res/wxInterface.rc
108 )
109
110
111 ADD_LIBRARY(MaracasInterfaceWX ${MARACAS_LIB_SRCS} )
112 TARGET_LINK_LIBRARIES(MaracasInterfaceWX
113   ${maracas_WXWIDGETS_LIBRARIES}
114   MaracasAlgorithm
115   MaracasKernel
116   MaracasSnakeContour
117   #${LIBIDO_LIBRARIES}
118   #${GLIB_LIBRARIES}
119   vtkCommon  vtkFiltering  vtkGraphics  vtkIO  vtkImaging  vtkRendering  vtkHybrid
120 )
121
122
123
124
125 #TODO for a nice VC++ we need to add header file...
126 SET(MARACAS_LIB_SRCS_02
127   manualContour.cpp
128   manualContour.h
129   marDictionary.cxx
130   marDictionary.h
131   wxMaracas3DBrowser.cxx
132   wxMaracas3DBrowser.h
133   wxMaracasDataBrowser.cxx
134   wxMaracasDataBrowser.h
135   wxMaracasImageBrowser.cxx
136   wxMaracasImageBrowser.h
137   wxMaracasImageBrowser02.cxx
138   wxMaracasImageBrowser02.h
139   widgets/wxReadingPriorityPanel.cpp
140   widgets/wxReadingPriorityPanel.h
141   wxMaracasFrame02.cxx
142   wxMaracasFrame02.h
143   wxILPDwithImage.cxx
144   wxILPDwithImage.h
145   wxMaracasParametersDialog.cxx
146   wxMaracasParametersDialog.h
147   widgets/wxParametersDialog.cpp
148   widgets/wxParametersDialog.h
149   wxMaracasHelpDialog.cxx
150   wxMaracasHelpDialog.h
151   wxMaracasQuantification.cxx
152   wxMaracasQuantification.h
153   widgets/wxVTKRenderWindowInteractor.cxx
154   widgets/wxVTKRenderWindowInteractor.h
155   widgets/wxVTKRenderWindowInteractorEditContour.cxx
156   widgets/wxVTKRenderWindowInteractorEditContour.h
157   widgets/vtk3DSurfaceWidget.cxx
158   widgets/vtk3DSurfaceWidget.h
159   widgets/vtk3DQuantSurfaceWidget.cxx
160   widgets/vtk3DQuantSurfaceWidget.h
161   widgets/vtk2DQuantSliceWidget.cxx
162   widgets/vtk2DQuantSliceWidget.h
163   widgets/vtk3DSurfaceSTLWidget.cxx
164   widgets/vtk3DSurfaceSTLWidget.h
165   widgets/wxSurfaceSTLWidget.cxx
166   widgets/wxSurfaceSTLWidget.h
167   widgets/InterfaceVtkPanelWidgets.cxx
168   widgets/InterfaceVtkPanelWidgets.h
169   widgets/wxSurfaceWidget.cxx
170   widgets/wxSurfaceWidget.h
171   widgets/wxImageBrowserWdg.cxx
172   widgets/wxImageBrowserWdg.h
173   widgets/wxImageViewerWidget.cxx
174   widgets/wxImageViewerWidget.h
175   widgets/vtkClosePolyData.cxx
176   widgets/vtkClosePolyData.h
177   widgets/vtkImagePolyDataSeedConnectivity.cxx
178   widgets/vtkImagePolyDataSeedConnectivity.h
179   widgets/vtkInteractorStyleCutter.cxx
180   widgets/vtkInteractorStyleCutter.h
181 #  widgets/wxChart.cxx
182 #  widgets/wxChart.h
183   widgets/wxQuantificationWidget.cxx
184   widgets/wxQuantificationWidget.h
185   wxMaracasMPR.cxx
186   wxMaracasMPR.h
187   wxMaracasEmptyPanel.cxx
188   wxMaracasEmptyPanel.h
189   widgets/wxEmptyPanelWidget.cxx
190   widgets/wxEmptyPanelWidget.h
191   wxMaracasEmptyPanel_2.cxx
192   wxMaracasEmptyPanel_2.h
193   widgets/wxEmptyPanelWidget_2.cxx
194   widgets/wxEmptyPanelWidget_2.h
195   widgets/wxMPRWidget.cxx
196   widgets/wxMPRWidget.h
197   widgets/wxMPRBaseData.cxx
198   widgets/wxMPRBaseData.h
199   widgets/wxVtkBaseView.cxx
200   widgets/wxVtkBaseView.h
201   widgets/wxMaracas_ViewerWidget.cxx
202   widgets/wxMaracas_ViewerWidget.h
203   widgets/wxMaracas_N_ViewersWidget.cxx
204   widgets/wxMaracas_N_ViewersWidget.h
205   wxMaracasProcessingCT.cxx
206   wxMaracasProcessingCT.h
207   widgets/wxProcessingCTWidget.cxx
208   widgets/wxProcessingCTWidget.h
209   wxMaracasQuantificationCT.cxx
210   wxMaracasQuantificationCT.h
211   widgets/wxQuantificationWidgetCT.cxx
212   widgets/wxQuantificationWidgetCT.h
213   widgets/wxQuantificationWidget_base.cxx
214   widgets/wxQuantificationWidget_base.h
215   wxMaracasEmptyPanel_3.cxx
216   wxMaracasEmptyPanel_3.h
217   widgets/wxEmptyPanel_3_Widget.cxx
218   widgets/wxEmptyPanel_3_Widget.h
219   wxMaracas_ManualTree_MPRDlg.cxx
220   wxMaracas_ManualTree_MPRDlg.h
221   wxMaracas_ManualTree_MPR.cxx
222   wxMaracas_ManualTree_MPR.h
223   widgets/wxManualTree_MPRWidget.cxx
224   widgets/wxManualTree_MPRWidget.h
225   widgets/wxManualRegistration3D.cxx
226   widgets/wxManualRegistration3D.h
227   res/wxInterface.rc
228   widgets/ContourView.h
229   widgets/ContourView.cxx
230   widgets/PointView.h
231   widgets/PointView.cxx
232   widgets/LineView.h
233   widgets/LineView.cxx
234   wxMaracasPathology_01.cxx
235   wxMaracasPathology_01.h
236   widgets/wxPathologyWidget_01.cxx
237   widgets/wxPathologyWidget_01.h
238   widgets/wxSTLWidget_02.cxx
239   widgets/wxSTLWidget_02.h
240   widgets/wxSTLWidget_03.cxx
241   widgets/wxSTLWidget_03.h
242   widgets/UtilVtk3DGeometriSelection.cxx
243   widgets/UtilVtk3DGeometriSelection.h
244   manualContourContainer.cxx
245   manualContourContainer.h
246   wxMaracas_ManualSegmentation_MPR.cxx
247   wxMaracas_ManualSegmentation_MPR.h
248   widgets/wxManualSegmentation_MPRWidget.cxx
249   widgets/wxManualSegmentation_MPRWidget.h
250   wxMaracas_SegmentationFM3D.cxx
251   wxMaracas_SegmentationFM3D.h
252   widgets/wxSegmentationFM3DWidget.cxx
253   widgets/wxSegmentationFM3DWidget.h
254   wxMaracas_ManualContour_Panel.cxx
255   wxMaracas_ManualContour_Panel.h
256
257 )
258
259
260
261 ADD_LIBRARY(MaracasInterface02WX ${MARACAS_LIB_SRCS_02} )
262 TARGET_LINK_LIBRARIES(MaracasInterface02WX
263   ${maracas_WXWIDGETS_LIBRARIES}
264   MaracasAlgorithm
265   MaracasKernel
266   MaracasSnakeContour
267   ${GLIB_LIBRARIES}
268   vtkCommon  vtkFiltering  vtkGraphics  vtkIO  vtkImaging  vtkRendering vtkHybrid
269 )
270
271 SET(MARACAS_WIN32LIB_SRCS
272     MaracasDll.h
273     MaracasDll.cpp
274     StdAfx.h
275     StdAfx.cpp
276     wxMaracasApp.cxx
277     wxMaracasApp.h
278 #    ../../kernel/marSimpleDicom.cpp
279 #    ../../kernel/marSimpleDicom.h
280     res/wxInterface.rc
281   )
282
283
284
285 IF(WIN32)
286   SET(MARACAS_WIN32APP_SRCS
287     wxMaracasApp02.cxx
288     wxMaracasApp02.h
289     res/wxInterface.rc
290   )
291   set(CMAKE_MFC_FLAG 2)
292   ADD_EXECUTABLE(maracas WIN32 ${MARACAS_WIN32APP_SRCS} )
293
294   TARGET_LINK_LIBRARIES(maracas
295
296         MaracasAlgorithm    MaracasKernel    MaracasSnakeContour    MaracasInterface02WX
297         vtkCommon  vtkFiltering  vtkGraphics  vtkIO  vtkImaging  vtkRendering vtkHybrid 
298         vtkWidgets vtkVolumeRendering
299
300         ILPDInterface ILPDModel ILPDcontrolerInterface 
301         ${MYSQL_LIBRARIES} 
302         ${maracas_WXWIDGETS_LIBRARIES}
303         #${GDCM_LIBRARIES} 
304  )
305
306
307   IF(MYSQL_PATH)
308
309 ##----Copy Debug cofiguration and DLLs---
310
311     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Debug )
312     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Debug/MySql/data )
313     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Debug/MySql/share )
314     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Debug/MySql/share/english )
315     CONFIGURE_FILE( ${MARACAS_SOURCE_DIR}/configuration/my.ini        ${LIBRARY_OUTPUT_PATH}/debug/my.ini                           COPYONLY        )
316     CONFIGURE_FILE( ${MARACAS_SOURCE_DIR}/configuration/errmsg.txt    ${LIBRARY_OUTPUT_PATH}/debug/MySql/share/english/errmsg.txt   COPYONLY        )
317     CONFIGURE_FILE( ${MARACAS_SOURCE_DIR}/configuration/errmsg.sys    ${LIBRARY_OUTPUT_PATH}/debug/MySql/share/english/errmsg.sys   COPYONLY        )
318
319     CONFIGURE_FILE( ${LIBIDO_BINARY_DIR}/lib/debug/libIdo.dll   ${LIBRARY_OUTPUT_PATH}/debug/libIdo.dll COPYONLY        )
320     CONFIGURE_FILE( C:/Creatis/glib-1.3/src/glib/glib-1.3.dll   ${LIBRARY_OUTPUT_PATH}/debug/glib-1.3.dll       COPYONLY        )
321
322     IF ( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_net_vc_custom.dll )
323       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_net_vc_custom.dll      ${LIBRARY_OUTPUT_PATH}/debug/wxbase28d_net_vc_custom.dll        COPYONLY        )
324       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_odbc_vc_custom.dll     ${LIBRARY_OUTPUT_PATH}/debug/wxbase28d_odbc_vc_custom.dll       COPYONLY        )
325       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_vc_custom.dll          ${LIBRARY_OUTPUT_PATH}/debug/wxbase28d_vc_custom.dll            COPYONLY        )
326       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_xml_vc_custom.dll      ${LIBRARY_OUTPUT_PATH}/debug/wxbase28d_xml_vc_custom.dll        COPYONLY        )
327       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_adv_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_adv_vc_custom.dll         COPYONLY        )
328       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_aui_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_aui_vc_custom.dll         COPYONLY        )
329       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_core_vc_custom.dll      ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_core_vc_custom.dll        COPYONLY        )
330       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_gl_vc_custom.dll        ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_gl_vc_custom.dll          COPYONLY        )
331       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_html_vc_custom.dll      ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_html_vc_custom.dll        COPYONLY        )
332       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_media_vc_custom.dll     ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_media_vc_custom.dll       COPYONLY        )
333       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_qa_vc_custom.dll        ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_qa_vc_custom.dll          COPYONLY        )
334       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_richtext_vc_custom.dll  ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_richtext_vc_custom.dll    COPYONLY        )
335       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_xrc_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_xrc_vc_custom.dll         COPYONLY        )
336       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_aui_vc_custom.dll                 ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28_aui_vc_custom.dll                 COPYONLY        ) 
337     ELSE ( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_net_vc_custom.dll )
338         MESSAGE (FATAL_ERROR, " wxWidgets dlls not found (Debug copy dlls)")
339     ENDIF( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_net_vc_custom.dll )
340
341     IF ( EXISTS ${MYSQL_PATH}/Embedded/DLL/debug/libmysqld.dll )
342       CONFIGURE_FILE( ${MYSQL_PATH}/Embedded/DLL/debug/libmysqld.dll    ${LIBRARY_OUTPUT_PATH}/debug/libmysqld.dll                    COPYONLY        )
343     ELSE ( EXISTS ${MYSQL_PATH}/Embedded/DLL/debug/libmysqld.dll )
344           MESSAGE (FATAL_ERROR, " libmysqld.dll not found (Debug copy dlls)")
345     ENDIF( EXISTS ${MYSQL_PATH}/Embedded/DLL/debug/libmysqld.dll )
346
347
348     IF ( EXISTS ${VTK_DIR}/../../bin/vtkCommon.dll )
349       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkCommon.dll            ${LIBRARY_OUTPUT_PATH}/debug/vtkCommon.dll                    COPYONLY        )
350       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkDICOMParser.dll       ${LIBRARY_OUTPUT_PATH}/debug/vtkDICOMParser.dll               COPYONLY        )
351       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkexpat.dll             ${LIBRARY_OUTPUT_PATH}/debug/vtkexpat.dll                     COPYONLY        )
352       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkFiltering.dll         ${LIBRARY_OUTPUT_PATH}/debug/vtkFiltering.dll                 COPYONLY        )
353       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkfreetype.dll          ${LIBRARY_OUTPUT_PATH}/debug/vtkfreetype.dll                  COPYONLY        )
354       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkftgl.dll              ${LIBRARY_OUTPUT_PATH}/debug/vtkftgl.dll                      COPYONLY        )
355       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkGraphics.dll          ${LIBRARY_OUTPUT_PATH}/debug/vtkGraphics.dll                  COPYONLY        )
356       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkHybrid.dll            ${LIBRARY_OUTPUT_PATH}/debug/vtkHybrid.dll                    COPYONLY        )
357       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkImaging.dll           ${LIBRARY_OUTPUT_PATH}/debug/vtkImaging.dll                   COPYONLY        )
358       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkIO.dll                ${LIBRARY_OUTPUT_PATH}/debug/vtkIO.dll                        COPYONLY        )
359       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkjpeg.dll              ${LIBRARY_OUTPUT_PATH}/debug/vtkjpeg.dll                      COPYONLY        )
360       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkWidgets.dll          ${LIBRARY_OUTPUT_PATH}/debug/vtkWidgets.dll                  COPYONLY        )
361       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkVolumeRendering.dll          ${LIBRARY_OUTPUT_PATH}/debug/vtkVolumeRendering.dll                  COPYONLY        )
362       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkexoIIc.dll          ${LIBRARY_OUTPUT_PATH}/debug/vtkexoIIc.dll                  COPYONLY        )
363       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkNetCDF.dll          ${LIBRARY_OUTPUT_PATH}/debug/vtkNetCDF.dll                  COPYONLY        )
364       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkpng.dll               ${LIBRARY_OUTPUT_PATH}/debug/vtkpng.dll                       COPYONLY        )
365       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkRendering.dll         ${LIBRARY_OUTPUT_PATH}/debug/vtkRendering.dll                 COPYONLY        )
366       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtktiff.dll              ${LIBRARY_OUTPUT_PATH}/debug/vtktiff.dll                      COPYONLY        )
367       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkzlib.dll              ${LIBRARY_OUTPUT_PATH}/debug/vtkzlib.dll                      COPYONLY        )
368     ELSE ( EXISTS ${VTK_DIR}/../../bin/vtkCommon.dll )
369            MESSAGE (FATAL_ERROR, " VTK dlls not found (Debug copy dlls)")
370     ENDIF( EXISTS ${VTK_DIR}/../../bin/vtkCommon.dll )
371
372     IF ( EXISTS ${ITK_DIR}/../../bin/ITKCommon.dll )
373       CONFIGURE_FILE( ${ITK_DIR}/../../bin/ITKCommon.dll            ${LIBRARY_OUTPUT_PATH}/debug/ITKCommon.dll                    COPYONLY        )
374     ELSE ( EXISTS ${ITK_DIR}/../../bin/ITKCommon.dll )
375           MESSAGE (FATAL_ERROR, " ITK dlls not found (Debug copy dlls)")
376     ENDIF( EXISTS ${ITK_DIR}/../../bin/ITKCommon.dll )
377
378
379
380 ##----Copy Release cofiguration and DLLs---
381
382     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Release )
383     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Release/MySql/data )
384     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Release/MySql/share )
385     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Release/MySql/share/english )
386     CONFIGURE_FILE( ${MARACAS_SOURCE_DIR}/configuration/my.ini        ${LIBRARY_OUTPUT_PATH}/release/my.ini                         COPYONLY        )
387     CONFIGURE_FILE( ${MARACAS_SOURCE_DIR}/configuration/errmsg.txt    ${LIBRARY_OUTPUT_PATH}/release/MySql/share/english/errmsg.txt COPYONLY        )
388     CONFIGURE_FILE( ${MARACAS_SOURCE_DIR}/configuration/errmsg.sys    ${LIBRARY_OUTPUT_PATH}/release/MySql/share/english/errmsg.sys COPYONLY        )
389
390     CONFIGURE_FILE( ${LIBIDO_BINARY_DIR}/lib/release/libIdo.dll ${LIBRARY_OUTPUT_PATH}/release/libIdo.dll       COPYONLY        )
391     CONFIGURE_FILE( C:/Creatis/glib-1.3/src/glib/glib-1.3.dll   ${LIBRARY_OUTPUT_PATH}/release/glib-1.3.dll     COPYONLY        )
392
393     IF ( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_net_vc_custom.dll )
394       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_net_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/release/wxbase28_net_vc_custom.dll       COPYONLY        )
395       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_odbc_vc_custom.dll      ${LIBRARY_OUTPUT_PATH}/release/wxbase28_odbc_vc_custom.dll      COPYONLY        )
396       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_vc_custom.dll           ${LIBRARY_OUTPUT_PATH}/release/wxbase28_vc_custom.dll           COPYONLY        )
397       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_xml_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/release/wxbase28_xml_vc_custom.dll       COPYONLY        )
398       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_adv_vc_custom.dll        ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_adv_vc_custom.dll        COPYONLY        )
399       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_aui_vc_custom.dll        ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_aui_vc_custom.dll        COPYONLY        )
400       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_core_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_core_vc_custom.dll       COPYONLY        )
401       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_gl_vc_custom.dll         ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_gl_vc_custom.dll         COPYONLY        )
402       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_html_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_html_vc_custom.dll       COPYONLY        )
403       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_media_vc_custom.dll      ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_media_vc_custom.dll      COPYONLY        )
404       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_richtext_vc_custom.dll   ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_richtext_vc_custom.dll   COPYONLY        )
405       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_qa_vc_custom.dll         ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_qa_vc_custom.dll         COPYONLY        )
406       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_xrc_vc_custom.dll        ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_xrc_vc_custom.dll        COPYONLY        )
407       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_aui_vc_custom.dll                ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28_aui_vc_custom.dll                  COPYONLY        ) 
408     ELSE ( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_net_vc_custom.dll )
409         MESSAGE (FATAL_ERROR, " wxWidgets dlls not found (Release copy dlls)")
410     ENDIF( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_net_vc_custom.dll )
411
412
413     IF ( EXISTS ${MYSQL_PATH}/Embedded/DLL/release/libmysqld.dll )
414       CONFIGURE_FILE( ${MYSQL_PATH}/Embedded/DLL/release/libmysqld.dll  ${LIBRARY_OUTPUT_PATH}/release/libmysqld.dll                  COPYONLY        )
415     ELSE ( EXISTS ${MYSQL_PATH}/Embedded/DLL/release/libmysqld.dll )
416         MESSAGE (FATAL_ERROR, " libmysqld.dll not found (Release copy dlls)")
417     ENDIF( EXISTS ${MYSQL_PATH}/Embedded/DLL/release/libmysqld.dll )
418
419     IF ( EXISTS ${VTK_DIR}/../../bin/vtkCommon.dll )
420       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkCommon.dll            ${LIBRARY_OUTPUT_PATH}/release/vtkCommon.dll                    COPYONLY        )
421       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkDICOMParser.dll       ${LIBRARY_OUTPUT_PATH}/release/vtkDICOMParser.dll               COPYONLY        )
422       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkexpat.dll             ${LIBRARY_OUTPUT_PATH}/release/vtkexpat.dll                     COPYONLY        )
423       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkFiltering.dll         ${LIBRARY_OUTPUT_PATH}/release/vtkFiltering.dll                 COPYONLY        )
424       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkfreetype.dll          ${LIBRARY_OUTPUT_PATH}/release/vtkfreetype.dll                  COPYONLY        )
425       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkftgl.dll              ${LIBRARY_OUTPUT_PATH}/release/vtkftgl.dll                      COPYONLY        )
426       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkGraphics.dll          ${LIBRARY_OUTPUT_PATH}/release/vtkGraphics.dll                  COPYONLY        )
427       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkHybrid.dll            ${LIBRARY_OUTPUT_PATH}/release/vtkHybrid.dll                    COPYONLY        )
428       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkImaging.dll           ${LIBRARY_OUTPUT_PATH}/release/vtkImaging.dll                   COPYONLY        )
429       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkIO.dll                ${LIBRARY_OUTPUT_PATH}/release/vtkIO.dll                        COPYONLY        )
430       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkjpeg.dll              ${LIBRARY_OUTPUT_PATH}/release/vtkjpeg.dll                      COPYONLY        )
431       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkWidgets.dll          ${LIBRARY_OUTPUT_PATH}/release/vtkWidgets.dll                  COPYONLY        )
432       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkVolumeRendering.dll          ${LIBRARY_OUTPUT_PATH}/release/vtkVolumeRendering.dll                  COPYONLY )
433       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkexoIIc.dll          ${LIBRARY_OUTPUT_PATH}/release/vtkexoIIc.dll                  COPYONLY        )
434       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkNetCDF.dll          ${LIBRARY_OUTPUT_PATH}/release/vtkNetCDF.dll                  COPYONLY        )
435       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkpng.dll               ${LIBRARY_OUTPUT_PATH}/release/vtkpng.dll                       COPYONLY        )
436       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkRendering.dll         ${LIBRARY_OUTPUT_PATH}/release/vtkRendering.dll                 COPYONLY        )
437       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtktiff.dll              ${LIBRARY_OUTPUT_PATH}/release/vtktiff.dll                      COPYONLY        )
438       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkzlib.dll              ${LIBRARY_OUTPUT_PATH}/release/vtkzlib.dll                      COPYONLY        )
439     ELSE ( EXISTS ${VTK_DIR}/../../bin/vtkCommon.dll )
440           MESSAGE (FATAL_ERROR, " VTK dlls not found (Release copy dlls)")
441     ENDIF( EXISTS ${VTK_DIR}/../../bin/vtkCommon.dll )
442
443
444     IF ( EXISTS ${ITK_DIR}/../../bin/ITKCommon.dll )
445       CONFIGURE_FILE( ${ITK_DIR}/../../bin/ITKCommon.dll            ${LIBRARY_OUTPUT_PATH}/release/ITKCommon.dll                    COPYONLY        )
446     ELSE ( EXISTS ${ITK_DIR}/../../bin/ITKCommon.dll )
447           MESSAGE (FATAL_ERROR, " ITK dlls not found (Release copy dlls)")
448     ENDIF( EXISTS ${ITK_DIR}/../../bin/ITKCommon.dll )
449
450 ENDIF(MYSQL_PATH)
451
452 ELSE(WIN32)
453
454
455   SET(MARACAS_LINUXAPP_SRCS
456     wxMaracasApp02.cxx
457     wxMaracasApp02.h
458   )
459
460   ADD_EXECUTABLE(maracas ${MARACAS_LINUXAPP_SRCS} )
461
462
463   TARGET_LINK_LIBRARIES(maracas
464         MaracasAlgorithm    MaracasKernel    MaracasSnakeContour    MaracasInterface02WX
465         vtkCommon  vtkFiltering  vtkGraphics  vtkIO  vtkImaging  vtkRendering vtkHybrid 
466         vtkWidgets vtkVolumeRendering
467
468         ILPDcontrolerInterface
469         ILPDInterface 
470         ILPDModel 
471         ${MYSQL_LIBRARIES}
472         ${maracas_WXWIDGETS_LIBRARIES}
473  )
474
475
476 ENDIF(WIN32)
477 SUBDIRS(widgets)
478
479