Commit 231cb668 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

ERR: Fix python problem with vtkMy on Mac OSX

parent 1011e6db
......@@ -25,8 +25,16 @@ ENDIF (VTK_WRAP_TCL AND VTKMY_WRAP_TCL)
# Create the vtkmyCommon Python library.
IF (VTK_WRAP_PYTHON AND VTKMY_WRAP_PYTHON)
VTK_WRAP_PYTHON (vtkmyCommonPython CommonPython_SRCS ${Common_SRCS})
ADD_LIBRARY (vtkmyCommonPython MODULE ${CommonPython_SRCS})
TARGET_LINK_LIBRARIES (vtkmyCommonPython vtkmyCommon vtkCommonPython)
IF (APPLE)
ADD_LIBRARY (vtkmyCommonPythonD ${CommonPython_SRCS})
ADD_LIBRARY (vtkmyCommonPython MODULE vtkmyCommonPythonInit.cxx)
TARGET_LINK_LIBRARIES(vtkmyCommonPythonD vtkmyCommon vtkCommon vtkCommonPythonD)
TARGET_LINK_LIBRARIES(vtkmyCommonPython vtkmyCommonPythonD)
INSTALL_TARGETS(/lib/vtk vtkmyCommonPythonD)
ELSE(APPLE)
ADD_LIBRARY (vtkmyCommonPython MODULE ${CommonPython_SRCS})
TARGET_LINK_LIBRARIES (vtkmyCommonPython vtkmyCommon vtkCommonPython)
ENDIF(APPLE)
ENDIF (VTK_WRAP_PYTHON AND VTKMY_WRAP_PYTHON)
# Create the vtkmyCommon Java library.
......
......@@ -25,8 +25,16 @@ ENDIF (VTK_WRAP_TCL AND VTKMY_WRAP_TCL)
# Create the vtkmyImaging Python library.
IF (VTK_WRAP_PYTHON AND VTKMY_WRAP_PYTHON)
VTK_WRAP_PYTHON (vtkmyImagingPython ImagingPython_SRCS ${Imaging_SRCS})
ADD_LIBRARY (vtkmyImagingPython MODULE ${ImagingPython_SRCS})
TARGET_LINK_LIBRARIES (vtkmyImagingPython vtkmyCommonPython vtkmyImaging)
IF (APPLE)
ADD_LIBRARY (vtkmyImagingPythonD ${ImagingPython_SRCS})
ADD_LIBRARY (vtkmyImagingPython MODULE vtkmyImagingPythonInit.cxx)
TARGET_LINK_LIBRARIES(vtkmyImagingPythonD vtkmyImaging vtkmyCommonPythonD vtkImaging vtkImagingPythonD)
TARGET_LINK_LIBRARIES(vtkmyImagingPython vtkmyImagingPythonD)
INSTALL_TARGETS(/lib/vtk vtkmyImagingPythonD)
ELSE(APPLE)
ADD_LIBRARY (vtkmyImagingPython MODULE ${ImagingPython_SRCS})
TARGET_LINK_LIBRARIES (vtkmyImagingPython vtkmyCommonPython vtkmyImaging)
ENDIF(APPLE)
ENDIF (VTK_WRAP_PYTHON AND VTKMY_WRAP_PYTHON)
# Create the vtkmyImaging Java library.
......
......@@ -41,8 +41,16 @@ ENDIF (VTK_WRAP_TCL AND VTKMY_WRAP_TCL)
# Create the vtkmyUnsorted Python library.
IF (VTK_WRAP_PYTHON AND VTKMY_WRAP_PYTHON)
VTK_WRAP_PYTHON (vtkmyUnsortedPython UnsortedPython_SRCS ${Unsorted_SRCS})
ADD_LIBRARY (vtkmyUnsortedPython MODULE ${UnsortedPython_SRCS})
TARGET_LINK_LIBRARIES(vtkmyUnsortedPython vtkmyCommonPython vtkmyUnsorted)
IF (APPLE)
ADD_LIBRARY (vtkmyUnsortedPythonD ${UnsortedPython_SRCS})
ADD_LIBRARY (vtkmyUnsortedPython MODULE vtkmyUnsortedPythonInit.cxx)
TARGET_LINK_LIBRARIES(vtkmyUnsortedPythonD vtkmyUnsorted vtkmyCommonPythonD)
TARGET_LINK_LIBRARIES(vtkmyUnsortedPython vtkmyUnsortedPythonD)
INSTALL_TARGETS(/lib/vtk vtkmyUnsortedPythonD)
ELSE(APPLE)
ADD_LIBRARY (vtkmyUnsortedPython MODULE ${UnsortedPython_SRCS})
TARGET_LINK_LIBRARIES (vtkmyUnsortedPython vtkmyCommonPython vtkmyUnsorted)
ENDIF(APPLE)
ENDIF (VTK_WRAP_PYTHON AND VTKMY_WRAP_PYTHON)
# Create the vtkmyUnsorted Java library.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment