]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/CMakeLists.txt
Support #1768 CREATIS Licence insertion
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / CMakeLists.txt
1 # ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
4 #                        pour la Sant�)
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
8 #
9 #  This software is governed by the CeCILL-B license under French law and
10 #  abiding by the rules of distribution of free software. You can  use,
11 #  modify and/ or redistribute the software under the terms of the CeCILL-B
12 #  license as circulated by CEA, CNRS and INRIA at the following URL
13 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 #  or in the file LICENSE.txt.
15 #
16 #  As a counterpart to the access to the source code and  rights to copy,
17 #  modify and redistribute granted by the license, users are provided only
18 #  with a limited warranty  and the software's author,  the holder of the
19 #  economic rights,  and the successive licensors  have only  limited
20 #  liability.
21 #
22 #  The fact that you are presently reading this means that you have had
23 #  knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
25
26 # This directory should only be build if wxWindows and VTK can be found
27
28
29 #-----------------------------------------------------------------------------
30 # Headers Requeridas - Required Headers
31 #-----------------------------------------------------------------------------
32 INCLUDE_DIRECTORIES(
33 "C:/Creatis/MaracasTools/OSGi/src"
34 "C:/Creatis/MaracasTools/Include"
35 )
36
37 #-----------------------------------------------------------------------------
38 # Lib directory
39 #-----------------------------------------------------------------------------
40 LINK_DIRECTORIES(
41 "C:/Creatis/MaracasTools/OSGi/bin/Debug"
42 )
43
44 #-----------------------------------------------------------------------------
45 # Source file list
46 #-----------------------------------------------------------------------------
47 SET(MARACAS_TOOLS_SOURCES
48     "tools/MaracasTools.h"
49     "tools/MaracasTools.cpp"
50 )
51
52
53
54 #-----------------------------------------------------------------------------
55 # Required libraries (dll o so)
56 #-----------------------------------------------------------------------------
57
58
59 #TODO for a nice VC++ we need to add header file...
60 SET(MARACAS_LIB_SRCS
61   manualContour.cpp
62   manualContour.h
63   marDictionary.cxx
64   marDictionary.h
65   wxMaracas3DBrowser.cxx
66   wxMaracas3DBrowser.h
67 #  wxMaracasDataBrowser.cxx
68 #  wxMaracasDataBrowser.h
69   wxMaracasImageBrowser.cxx
70   wxMaracasImageBrowser.h
71   wxMaracasFrame.cxx
72   wxMaracasFrame.h
73   wxMaracasParametersDialog.cxx
74   wxMaracasParametersDialog.h
75   widgets/wxParametersDialog.cpp
76   widgets/wxParametersDialog.h
77   wxMaracasHelpDialog.cxx
78   wxMaracasHelpDialog.h
79   wxMaracasQuantification.cxx
80   wxMaracasQuantification.h
81   wxMaracasSurfaceRendering.cxx
82   wxMaracasSurfaceRendering.h
83   wxMaracasRendererView.cxx
84   wxMaracasRendererView.h
85   
86   
87         
88   widgets/wxVTKRenderWindowInteractor.cxx
89   widgets/wxVTKRenderWindowInteractor.h
90   widgets/wxVTKRenderWindowInteractorEditContour.cxx
91   widgets/wxVTKRenderWindowInteractorEditContour.h
92   widgets/vtk3DSurfaceWidget.cxx
93   widgets/vtk3DSurfaceWidget.h
94   widgets/vtk3DQuantSurfaceWidget.cxx
95   widgets/vtk3DQuantSurfaceWidget.h
96   widgets/vtk2DQuantSliceWidget.cxx
97   widgets/vtk2DQuantSliceWidget.h
98   widgets/wxSurfaceWidget.cxx
99   widgets/wxSurfaceWidget.h
100   widgets/wxImageBrowserWdg.cxx
101   widgets/wxImageBrowserWdg.h
102   widgets/wxImageViewerWidget.cxx
103   widgets/wxImageViewerWidget.h
104   widgets/vtkClosePolyData.cxx
105   widgets/vtkClosePolyData.h
106 #  widgets/vtkImagePolyDataSeedConnectivity.cxx
107 #  widgets/vtkImagePolyDataSeedConnectivity.h
108 #  widgets/vtkInteractorStyleCutter.cxx
109 #  widgets/vtkInteractorStyleCutter.h
110 #  widgets/wxChart.cxx
111 #  widgets/wxChart.h
112   widgets/wxQuantificationWidget.cxx
113   widgets/wxQuantificationWidget.h
114   wxMaracas_ManualTree_MPRDlg.cxx
115   wxMaracas_ManualTree_MPRDlg.h
116   wxMaracas_ManualTree_MPR.cxx
117   wxMaracas_ManualTree_MPR.h
118   widgets/wxManualTree_MPRWidget.cxx
119   widgets/wxManualTree_MPRWidget.h
120   widgets/wxManualRegistration3D.cxx
121   widgets/wxManualRegistration3D.h
122   wxMaracasMPR.cxx
123   wxMaracasMPR.h
124   widgets/wxMPRWidget.cxx
125   widgets/wxMPRWidget.h
126   widgets/wxMPRBaseData.cxx
127   widgets/wxMPRBaseData.h
128   widgets/wxVtkBaseView.cxx
129   widgets/wxVtkBaseView.h
130   widgets/wxQuantificationWidget_base.cxx
131   widgets/wxQuantificationWidget_base.h
132   widgets/UtilVtk3DGeometriSelection.cxx
133   widgets/UtilVtk3DGeometriSelection.h
134   res/wxInterface.rc
135 )
136
137
138 ADD_LIBRARY(MaracasInterfaceWX ${MARACAS_LIB_SRCS} )
139 TARGET_LINK_LIBRARIES(MaracasInterfaceWX
140   ${maracas_WXWIDGETS_LIBRARIES}
141   MaracasAlgorithm
142   MaracasKernel
143   MaracasSnakeContour
144   #${LIBIDO_LIBRARIES}
145   #${GLIB_LIBRARIES}
146   vtkCommon  vtkFiltering  vtkGraphics  vtkIO  vtkImaging  vtkRendering  vtkHybrid
147 )
148
149
150
151
152 #TODO for a nice VC++ we need to add header file...
153 SET(MARACAS_LIB_SRCS_02
154   manualContour.cpp
155   manualContour.h
156   marDictionary.cxx
157   marDictionary.h
158   wxMaracas3DBrowser.cxx
159   wxMaracas3DBrowser.h
160   wxMaracasDataBrowser.cxx
161   wxMaracasDataBrowser.h
162   wxMaracasImageBrowser.cxx
163   wxMaracasImageBrowser.h
164   wxMaracasImageBrowser02.cxx
165   wxMaracasImageBrowser02.h
166   widgets/wxReadingPriorityPanel.cpp
167   widgets/wxReadingPriorityPanel.h
168   wxMaracasFrame02.cxx
169   wxMaracasFrame02.h
170   wxILPDwithImage.cxx
171   wxILPDwithImage.h
172   wxMaracasParametersDialog.cxx
173   wxMaracasParametersDialog.h
174   widgets/wxParametersDialog.cpp
175   widgets/wxParametersDialog.h
176   wxMaracasHelpDialog.cxx
177   wxMaracasHelpDialog.h
178   wxMaracasQuantification.cxx
179   wxMaracasQuantification.h
180   widgets/wxVTKRenderWindowInteractor.cxx
181   widgets/wxVTKRenderWindowInteractor.h
182   widgets/wxVTKRenderWindowInteractorEditContour.cxx
183   widgets/wxVTKRenderWindowInteractorEditContour.h
184   widgets/vtk3DSurfaceWidget.cxx
185   widgets/vtk3DSurfaceWidget.h
186   widgets/vtk3DQuantSurfaceWidget.cxx
187   widgets/vtk3DQuantSurfaceWidget.h
188   widgets/vtk2DQuantSliceWidget.cxx
189   widgets/vtk2DQuantSliceWidget.h
190   widgets/vtk3DSurfaceSTLWidget.cxx
191   widgets/vtk3DSurfaceSTLWidget.h
192   widgets/wxSurfaceSTLWidget.cxx
193   widgets/wxSurfaceSTLWidget.h
194   widgets/InterfaceVtkPanelWidgets.cxx
195   widgets/InterfaceVtkPanelWidgets.h
196   widgets/wxSurfaceWidget.cxx
197   widgets/wxSurfaceWidget.h
198   widgets/wxImageBrowserWdg.cxx
199   widgets/wxImageBrowserWdg.h
200   widgets/wxImageViewerWidget.cxx
201   widgets/wxImageViewerWidget.h
202   widgets/vtkClosePolyData.cxx
203   widgets/vtkClosePolyData.h
204   widgets/vtkImagePolyDataSeedConnectivity.cxx
205   widgets/vtkImagePolyDataSeedConnectivity.h
206   widgets/vtkInteractorStyleCutter.cxx
207   widgets/vtkInteractorStyleCutter.h
208 #  widgets/wxChart.cxx
209 #  widgets/wxChart.h
210   widgets/wxQuantificationWidget.cxx
211   widgets/wxQuantificationWidget.h
212   wxMaracasMPR.cxx
213   wxMaracasMPR.h
214   wxMaracasEmptyPanel.cxx
215   wxMaracasEmptyPanel.h
216   widgets/wxEmptyPanelWidget.cxx
217   widgets/wxEmptyPanelWidget.h
218   wxMaracasEmptyPanel_2.cxx
219   wxMaracasEmptyPanel_2.h
220   widgets/wxEmptyPanelWidget_2.cxx
221   widgets/wxEmptyPanelWidget_2.h
222   widgets/wxMPRWidget.cxx
223   widgets/wxMPRWidget.h
224   widgets/wxMPRBaseData.cxx
225   widgets/wxMPRBaseData.h
226   widgets/wxVtkBaseView.cxx
227   widgets/wxVtkBaseView.h
228   widgets/wxMaracas_ViewerWidget.cxx
229   widgets/wxMaracas_ViewerWidget.h
230   widgets/wxMaracas_N_ViewersWidget.cxx
231   widgets/wxMaracas_N_ViewersWidget.h
232   wxMaracasProcessingCT.cxx
233   wxMaracasProcessingCT.h
234   widgets/wxProcessingCTWidget.cxx
235   widgets/wxProcessingCTWidget.h
236   wxMaracasQuantificationCT.cxx
237   wxMaracasQuantificationCT.h
238   widgets/wxQuantificationWidgetCT.cxx
239   widgets/wxQuantificationWidgetCT.h
240   widgets/wxQuantificationWidget_base.cxx
241   widgets/wxQuantificationWidget_base.h
242   wxMaracasEmptyPanel_3.cxx
243   wxMaracasEmptyPanel_3.h
244   widgets/wxEmptyPanel_3_Widget.cxx
245   widgets/wxEmptyPanel_3_Widget.h
246   wxMaracas_ManualTree_MPRDlg.cxx
247   wxMaracas_ManualTree_MPRDlg.h
248   wxMaracas_ManualTree_MPR.cxx
249   wxMaracas_ManualTree_MPR.h
250   widgets/wxManualTree_MPRWidget.cxx
251   widgets/wxManualTree_MPRWidget.h
252   widgets/wxManualRegistration3D.cxx
253   widgets/wxManualRegistration3D.h
254   res/wxInterface.rc
255   widgets/ContourView.h
256   widgets/ContourView.cxx
257   widgets/PointView.h
258   widgets/PointView.cxx
259   widgets/LineView.h
260   widgets/LineView.cxx
261   wxMaracasPathology_01.cxx
262   wxMaracasPathology_01.h
263   widgets/wxPathologyWidget_01.cxx
264   widgets/wxPathologyWidget_01.h
265   widgets/wxSTLWidget_02.cxx
266   widgets/wxSTLWidget_02.h
267   widgets/wxSTLWidget_03.cxx
268   widgets/wxSTLWidget_03.h
269   widgets/UtilVtk3DGeometriSelection.cxx
270   widgets/UtilVtk3DGeometriSelection.h
271   manualContourContainer.cxx
272   manualContourContainer.h
273   wxMaracas_ManualSegmentation_MPR.cxx
274   wxMaracas_ManualSegmentation_MPR.h
275   widgets/wxManualSegmentation_MPRWidget.cxx
276   widgets/wxManualSegmentation_MPRWidget.h
277   wxMaracas_SegmentationFM3D.cxx
278   wxMaracas_SegmentationFM3D.h
279   widgets/wxSegmentationFM3DWidget.cxx
280   widgets/wxSegmentationFM3DWidget.h
281   wxMaracas_ManualContour_Panel.cxx
282   wxMaracas_ManualContour_Panel.h
283
284 )
285
286
287
288 ADD_LIBRARY(MaracasInterface02WX ${MARACAS_LIB_SRCS_02} )
289 TARGET_LINK_LIBRARIES(MaracasInterface02WX
290   ${maracas_WXWIDGETS_LIBRARIES}
291   MaracasAlgorithm
292   MaracasKernel
293   MaracasSnakeContour
294   ${GLIB_LIBRARIES}
295   vtkCommon  vtkFiltering  vtkGraphics  vtkIO  vtkImaging  vtkRendering vtkHybrid
296 )
297
298 SET(MARACAS_WIN32LIB_SRCS
299     MaracasDll.h
300     MaracasDll.cpp
301     StdAfx.h
302     StdAfx.cpp
303     wxMaracasApp.cxx
304     wxMaracasApp.h
305 #    ../../kernel/marSimpleDicom.cpp
306 #    ../../kernel/marSimpleDicom.h
307     res/wxInterface.rc
308   )
309
310
311
312 IF(WIN32)
313   SET(MARACAS_WIN32APP_SRCS
314     wxMaracasApp02.cxx
315     wxMaracasApp02.h
316     res/wxInterface.rc
317   )
318   set(CMAKE_MFC_FLAG 2)
319   ADD_EXECUTABLE(maracas WIN32 ${MARACAS_WIN32APP_SRCS} )
320
321   TARGET_LINK_LIBRARIES(maracas
322
323         MaracasAlgorithm    MaracasKernel    MaracasSnakeContour    MaracasInterface02WX
324         vtkCommon  vtkFiltering  vtkGraphics  vtkIO  vtkImaging  vtkRendering vtkHybrid 
325         vtkWidgets vtkVolumeRendering
326
327         ILPDInterface ILPDModel ILPDcontrolerInterface 
328         ${MYSQL_LIBRARIES} 
329         ${maracas_WXWIDGETS_LIBRARIES}
330         #${GDCM_LIBRARIES} 
331  )
332
333
334   IF(MYSQL_PATH)
335
336 ##----Copy Debug cofiguration and DLLs---
337
338     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Debug )
339     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Debug/MySql/data )
340     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Debug/MySql/share )
341     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Debug/MySql/share/english )
342     CONFIGURE_FILE( ${MARACAS_SOURCE_DIR}/configuration/my.ini        ${LIBRARY_OUTPUT_PATH}/debug/my.ini                           COPYONLY        )
343     CONFIGURE_FILE( ${MARACAS_SOURCE_DIR}/configuration/errmsg.txt    ${LIBRARY_OUTPUT_PATH}/debug/MySql/share/english/errmsg.txt   COPYONLY        )
344     CONFIGURE_FILE( ${MARACAS_SOURCE_DIR}/configuration/errmsg.sys    ${LIBRARY_OUTPUT_PATH}/debug/MySql/share/english/errmsg.sys   COPYONLY        )
345
346     CONFIGURE_FILE( ${LIBIDO_BINARY_DIR}/lib/debug/libIdo.dll   ${LIBRARY_OUTPUT_PATH}/debug/libIdo.dll COPYONLY        )
347     CONFIGURE_FILE( C:/Creatis/glib-1.3/src/glib/glib-1.3.dll   ${LIBRARY_OUTPUT_PATH}/debug/glib-1.3.dll       COPYONLY        )
348
349     IF ( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_net_vc_custom.dll )
350       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_net_vc_custom.dll      ${LIBRARY_OUTPUT_PATH}/debug/wxbase28d_net_vc_custom.dll        COPYONLY        )
351       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_odbc_vc_custom.dll     ${LIBRARY_OUTPUT_PATH}/debug/wxbase28d_odbc_vc_custom.dll       COPYONLY        )
352       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_vc_custom.dll          ${LIBRARY_OUTPUT_PATH}/debug/wxbase28d_vc_custom.dll            COPYONLY        )
353       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_xml_vc_custom.dll      ${LIBRARY_OUTPUT_PATH}/debug/wxbase28d_xml_vc_custom.dll        COPYONLY        )
354       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_adv_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_adv_vc_custom.dll         COPYONLY        )
355       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_aui_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_aui_vc_custom.dll         COPYONLY        )
356       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_core_vc_custom.dll      ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_core_vc_custom.dll        COPYONLY        )
357       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_gl_vc_custom.dll        ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_gl_vc_custom.dll          COPYONLY        )
358       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_html_vc_custom.dll      ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_html_vc_custom.dll        COPYONLY        )
359       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_media_vc_custom.dll     ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_media_vc_custom.dll       COPYONLY        )
360       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_qa_vc_custom.dll        ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_qa_vc_custom.dll          COPYONLY        )
361       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_richtext_vc_custom.dll  ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_richtext_vc_custom.dll    COPYONLY        )
362       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_xrc_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_xrc_vc_custom.dll         COPYONLY        )
363       CONFIGURE_FILE(
364 ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_aui_vc_custom.dll
365 ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28_aui_vc_custom.dll          COPYONLY        ) 
366     ELSE ( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_net_vc_custom.dll )
367         MESSAGE (FATAL_ERROR, " wxWidgets dlls not found (Debug copy dlls)")
368     ENDIF( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_net_vc_custom.dll )
369
370     IF ( EXISTS ${MYSQL_PATH}/Embedded/DLL/debug/libmysqld.dll )
371       CONFIGURE_FILE( ${MYSQL_PATH}/Embedded/DLL/debug/libmysqld.dll    ${LIBRARY_OUTPUT_PATH}/debug/libmysqld.dll                    COPYONLY        )
372     ELSE ( EXISTS ${MYSQL_PATH}/Embedded/DLL/debug/libmysqld.dll )
373           MESSAGE (FATAL_ERROR, " libmysqld.dll not found (Debug copy dlls)")
374     ENDIF( EXISTS ${MYSQL_PATH}/Embedded/DLL/debug/libmysqld.dll )
375
376
377     IF ( EXISTS ${VTK_DIR}/../../bin/vtkCommon.dll )
378       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkCommon.dll            ${LIBRARY_OUTPUT_PATH}/debug/vtkCommon.dll                    COPYONLY        )
379       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkDICOMParser.dll       ${LIBRARY_OUTPUT_PATH}/debug/vtkDICOMParser.dll               COPYONLY        )
380       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkexpat.dll             ${LIBRARY_OUTPUT_PATH}/debug/vtkexpat.dll                     COPYONLY        )
381       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkFiltering.dll         ${LIBRARY_OUTPUT_PATH}/debug/vtkFiltering.dll                 COPYONLY        )
382       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkfreetype.dll          ${LIBRARY_OUTPUT_PATH}/debug/vtkfreetype.dll                  COPYONLY        )
383       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkftgl.dll              ${LIBRARY_OUTPUT_PATH}/debug/vtkftgl.dll                      COPYONLY        )
384       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkGraphics.dll          ${LIBRARY_OUTPUT_PATH}/debug/vtkGraphics.dll                  COPYONLY        )
385       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkHybrid.dll            ${LIBRARY_OUTPUT_PATH}/debug/vtkHybrid.dll                    COPYONLY        )
386       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkImaging.dll           ${LIBRARY_OUTPUT_PATH}/debug/vtkImaging.dll                   COPYONLY        )
387       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkIO.dll                ${LIBRARY_OUTPUT_PATH}/debug/vtkIO.dll                        COPYONLY        )
388       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkjpeg.dll              ${LIBRARY_OUTPUT_PATH}/debug/vtkjpeg.dll                      COPYONLY        )
389       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkWidgets.dll          ${LIBRARY_OUTPUT_PATH}/debug/vtkWidgets.dll                  COPYONLY        )
390       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkVolumeRendering.dll          ${LIBRARY_OUTPUT_PATH}/debug/vtkVolumeRendering.dll                  COPYONLY        )
391       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkexoIIc.dll          ${LIBRARY_OUTPUT_PATH}/debug/vtkexoIIc.dll                  COPYONLY        )
392       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkNetCDF.dll          ${LIBRARY_OUTPUT_PATH}/debug/vtkNetCDF.dll                  COPYONLY        )
393       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkpng.dll               ${LIBRARY_OUTPUT_PATH}/debug/vtkpng.dll                       COPYONLY        )
394       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkRendering.dll         ${LIBRARY_OUTPUT_PATH}/debug/vtkRendering.dll                 COPYONLY        )
395       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtktiff.dll              ${LIBRARY_OUTPUT_PATH}/debug/vtktiff.dll                      COPYONLY        )
396       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkzlib.dll              ${LIBRARY_OUTPUT_PATH}/debug/vtkzlib.dll                      COPYONLY        )
397     ELSE ( EXISTS ${VTK_DIR}/../../bin/vtkCommon.dll )
398            MESSAGE (FATAL_ERROR, " VTK dlls not found (Debug copy dlls)")
399     ENDIF( EXISTS ${VTK_DIR}/../../bin/vtkCommon.dll )
400
401     IF ( EXISTS ${ITK_DIR}/../../bin/ITKCommon.dll )
402       CONFIGURE_FILE( ${ITK_DIR}/../../bin/ITKCommon.dll            ${LIBRARY_OUTPUT_PATH}/debug/ITKCommon.dll                    COPYONLY        )
403     ELSE ( EXISTS ${ITK_DIR}/../../bin/ITKCommon.dll )
404           MESSAGE (FATAL_ERROR, " ITK dlls not found (Debug copy dlls)")
405     ENDIF( EXISTS ${ITK_DIR}/../../bin/ITKCommon.dll )
406
407
408
409 ##----Copy Release configuration and DLLs---
410
411     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Release )
412     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Release/MySql/data )
413     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Release/MySql/share )
414     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Release/MySql/share/english )
415     CONFIGURE_FILE( ${MARACAS_SOURCE_DIR}/configuration/my.ini        ${LIBRARY_OUTPUT_PATH}/release/my.ini                         COPYONLY        )
416     CONFIGURE_FILE( ${MARACAS_SOURCE_DIR}/configuration/errmsg.txt    ${LIBRARY_OUTPUT_PATH}/release/MySql/share/english/errmsg.txt COPYONLY        )
417     CONFIGURE_FILE( ${MARACAS_SOURCE_DIR}/configuration/errmsg.sys    ${LIBRARY_OUTPUT_PATH}/release/MySql/share/english/errmsg.sys COPYONLY        )
418
419     CONFIGURE_FILE( ${LIBIDO_BINARY_DIR}/lib/release/libIdo.dll ${LIBRARY_OUTPUT_PATH}/release/libIdo.dll       COPYONLY        )
420     CONFIGURE_FILE( C:/Creatis/glib-1.3/src/glib/glib-1.3.dll   ${LIBRARY_OUTPUT_PATH}/release/glib-1.3.dll     COPYONLY        )
421
422     IF ( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_net_vc_custom.dll )
423       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_net_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/release/wxbase28_net_vc_custom.dll       COPYONLY        )
424       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_odbc_vc_custom.dll      ${LIBRARY_OUTPUT_PATH}/release/wxbase28_odbc_vc_custom.dll      COPYONLY        )
425       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_vc_custom.dll           ${LIBRARY_OUTPUT_PATH}/release/wxbase28_vc_custom.dll           COPYONLY        )
426       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_xml_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/release/wxbase28_xml_vc_custom.dll       COPYONLY        )
427       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_adv_vc_custom.dll        ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_adv_vc_custom.dll        COPYONLY        )
428       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_aui_vc_custom.dll        ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_aui_vc_custom.dll        COPYONLY        )
429       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_core_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_core_vc_custom.dll       COPYONLY        )
430       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_gl_vc_custom.dll         ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_gl_vc_custom.dll         COPYONLY        )
431       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_html_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_html_vc_custom.dll       COPYONLY        )
432       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_media_vc_custom.dll      ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_media_vc_custom.dll      COPYONLY        )
433       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_richtext_vc_custom.dll   ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_richtext_vc_custom.dll   COPYONLY        )
434       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_qa_vc_custom.dll         ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_qa_vc_custom.dll         COPYONLY        )
435       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_xrc_vc_custom.dll        ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_xrc_vc_custom.dll        COPYONLY        )
436       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_aui_vc_custom.dll        ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28_aui_vc_custom.dll          COPYONLY        ) 
437     ELSE ( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_net_vc_custom.dll )
438         MESSAGE (FATAL_ERROR, " wxWidgets dlls not found (Release copy dlls)")
439     ENDIF( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_net_vc_custom.dll )
440
441
442     IF ( EXISTS ${MYSQL_PATH}/Embedded/DLL/release/libmysqld.dll )
443       CONFIGURE_FILE( ${MYSQL_PATH}/Embedded/DLL/release/libmysqld.dll  ${LIBRARY_OUTPUT_PATH}/release/libmysqld.dll                  COPYONLY        )
444     ELSE ( EXISTS ${MYSQL_PATH}/Embedded/DLL/release/libmysqld.dll )
445         MESSAGE (FATAL_ERROR, " libmysqld.dll not found (Release copy dlls)")
446     ENDIF( EXISTS ${MYSQL_PATH}/Embedded/DLL/release/libmysqld.dll )
447
448     IF ( EXISTS ${VTK_DIR}/../../bin/vtkCommon.dll )
449       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkCommon.dll            ${LIBRARY_OUTPUT_PATH}/release/vtkCommon.dll                    COPYONLY        )
450       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkDICOMParser.dll       ${LIBRARY_OUTPUT_PATH}/release/vtkDICOMParser.dll               COPYONLY        )
451       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkexpat.dll             ${LIBRARY_OUTPUT_PATH}/release/vtkexpat.dll                     COPYONLY        )
452       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkFiltering.dll         ${LIBRARY_OUTPUT_PATH}/release/vtkFiltering.dll                 COPYONLY        )
453       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkfreetype.dll          ${LIBRARY_OUTPUT_PATH}/release/vtkfreetype.dll                  COPYONLY        )
454       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkftgl.dll              ${LIBRARY_OUTPUT_PATH}/release/vtkftgl.dll                      COPYONLY        )
455       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkGraphics.dll          ${LIBRARY_OUTPUT_PATH}/release/vtkGraphics.dll                  COPYONLY        )
456       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkHybrid.dll            ${LIBRARY_OUTPUT_PATH}/release/vtkHybrid.dll                    COPYONLY        )
457       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkImaging.dll           ${LIBRARY_OUTPUT_PATH}/release/vtkImaging.dll                   COPYONLY        )
458       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkIO.dll                ${LIBRARY_OUTPUT_PATH}/release/vtkIO.dll                        COPYONLY        )
459       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkjpeg.dll              ${LIBRARY_OUTPUT_PATH}/release/vtkjpeg.dll                      COPYONLY        )
460       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkWidgets.dll          ${LIBRARY_OUTPUT_PATH}/release/vtkWidgets.dll                  COPYONLY        )
461       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkVolumeRendering.dll          ${LIBRARY_OUTPUT_PATH}/release/vtkVolumeRendering.dll                  COPYONLY )
462       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkexoIIc.dll          ${LIBRARY_OUTPUT_PATH}/release/vtkexoIIc.dll                  COPYONLY        )
463       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkNetCDF.dll          ${LIBRARY_OUTPUT_PATH}/release/vtkNetCDF.dll                  COPYONLY        )
464       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkpng.dll               ${LIBRARY_OUTPUT_PATH}/release/vtkpng.dll                       COPYONLY        )
465       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkRendering.dll         ${LIBRARY_OUTPUT_PATH}/release/vtkRendering.dll                 COPYONLY        )
466       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtktiff.dll              ${LIBRARY_OUTPUT_PATH}/release/vtktiff.dll                      COPYONLY        )
467       CONFIGURE_FILE( ${VTK_DIR}/../../bin/vtkzlib.dll              ${LIBRARY_OUTPUT_PATH}/release/vtkzlib.dll                      COPYONLY        )
468     ELSE ( EXISTS ${VTK_DIR}/../../bin/vtkCommon.dll )
469           MESSAGE (FATAL_ERROR, " VTK dlls not found (Release copy dlls)")
470     ENDIF( EXISTS ${VTK_DIR}/../../bin/vtkCommon.dll )
471
472
473     IF ( EXISTS ${ITK_DIR}/../../bin/ITKCommon.dll )
474       CONFIGURE_FILE( ${ITK_DIR}/../../bin/ITKCommon.dll            ${LIBRARY_OUTPUT_PATH}/release/ITKCommon.dll                    COPYONLY        )
475     ELSE ( EXISTS ${ITK_DIR}/../../bin/ITKCommon.dll )
476           MESSAGE (FATAL_ERROR, " ITK dlls not found (Release copy dlls)")
477     ENDIF( EXISTS ${ITK_DIR}/../../bin/ITKCommon.dll )
478
479 ENDIF(MYSQL_PATH)
480
481 ELSE(WIN32)
482
483
484   SET(MARACAS_LINUXAPP_SRCS
485     wxMaracasApp02.cxx
486     wxMaracasApp02.h
487   )
488
489   ADD_EXECUTABLE(maracas ${MARACAS_LINUXAPP_SRCS} )
490
491
492   TARGET_LINK_LIBRARIES(maracas
493         MaracasAlgorithm    MaracasKernel    MaracasSnakeContour    MaracasInterface02WX
494         vtkCommon  vtkFiltering  vtkGraphics  vtkIO  vtkImaging  vtkRendering vtkHybrid 
495         vtkWidgets vtkVolumeRendering
496
497         ILPDcontrolerInterface
498         ILPDInterface 
499         ILPDModel 
500         ${MYSQL_LIBRARIES}
501         ${maracas_WXWIDGETS_LIBRARIES}
502  )
503
504
505 ENDIF(WIN32)
506 ADD_SUBDIRECTORY(widgets)
507
508
509
510