2 #If we reach this dir we have selected this option
6 #http://www.cmake.org/pipermail/cmake/2003-August/004185.html
7 #http://www.cmake.org/pipermail/cmake/2003-January/001092.html
9 #As of 09/10/2003 there was no FindSWIG.cmake
11 #gdcm_wrap.cxx: $(srcdir)/gdcm.i
12 # $(SWIG) -python -c++ $(SWIG_INC) -o $@ $<
15 ${GDCM_SOURCE_DIR}/src
19 ${GDCM_SOURCE_DIR}/src
29 SET(GDCM_PYTHON_SOURCES
33 SET_SOURCE_FILES_PROPERTIES(gdcm_wrap.cxx GENERATED)
36 SOURCE ${GDCM_SOURCE_DIR}/gdcmPython/gdcm.i
38 ARGS -python -c++ -I${GDCM_SOURCE_DIR}/src -o gdcm_wrap.cxx ${GDCM_SOURCE_DIR}/gdcmPython/gdcm.i
43 ADD_LIBRARY(pygdcm ${GDCM_PYTHON_SOURCES})
48 # INCLUDE_DIRECTORIES(
49 # ${GDCM_SOURCE_DIR}/vtk
52 SET(vtkgdcmPython_la_SOURCES
53 # vtkGdcmReaderPython.cxx
55 ${GDCM_SOURCE_DIR}/vtk/vtkGdcmReader.cxx
57 SET_SOURCE_FILES_PROPERTIES(vtkGdcmReaderPython.cxx GENERATED)
60 # The C++ files must be made into a C++ library
61 #ADD_LIBRARY ( vtkgdcmPython ${vtkgdcmPython_la_SOURCES})
63 # set the libraries to link against
64 #TARGET_LINK_LIBRARIES(vtkgdcmPython vtkCommon)
66 # Configure Python module, which is the plugin itself
68 VTK_WRAP_PYTHON2(vtkgdcmPython gdcmfoo
69 ${vtkgdcmPython_la_SOURCES})
70 ADD_LIBRARY(vtkgdcmPython SHARED ${gdcmfoo})
71 TARGET_LINK_LIBRARIES (vtkgdcmPython
76 ENDIF (GDCM_WRAP_PYTHON)