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