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