CMakeLists.txt 1.78 KB
Newer Older
1
2
3
4
5
6
#
# Source files
#
# Here is where you can add the name of your local imaging classes.
#

7
SET (Imaging_SRCS
8
  vtkImageFoo.cxx
9
10
11
12
13
14
)

# --------------------------------------------------------------------------
# You probably do not need to modify anything below this line

# Create the vtkmyImaging C++ library
15
16
ADD_LIBRARY (vtkmyImaging ${Imaging_SRCS})
TARGET_LINK_LIBRARIES(vtkmyImaging vtkmyCommon vtkImaging)
17
18

# Create the vtkmyImaging Tcl library
19
IF (VTK_WRAP_TCL AND VTKMY_WRAP_TCL)
20
  VTK_WRAP_TCL3 (vtkmyImagingTCL ImagingTCL_SRCS "${Imaging_SRCS}" "")
Berk Geveci's avatar
Berk Geveci committed
21
  ADD_LIBRARY (vtkmyImagingTCL ${ImagingTCL_SRCS})
22
  TARGET_LINK_LIBRARIES (vtkmyImagingTCL vtkmyCommonTCL vtkmyImaging vtkImagingTCL)
23
ENDIF (VTK_WRAP_TCL AND VTKMY_WRAP_TCL)
24

25
# Create the vtkmyImaging Python library.
26
IF (VTK_WRAP_PYTHON AND VTKMY_WRAP_PYTHON)
27
  INCLUDE_DIRECTORIES("${PYTHON_INCLUDE_PATH}")
28
  VTK_WRAP_PYTHON3 (vtkmyImagingPython ImagingPython_SRCS "${Imaging_SRCS}")
29
30
31
32
  ADD_LIBRARY (vtkmyImagingPythonD ${ImagingPython_SRCS})
  ADD_LIBRARY (vtkmyImagingPython MODULE vtkmyImagingPythonInit.cxx)
  TARGET_LINK_LIBRARIES(vtkmyImagingPythonD vtkmyImaging vtkmyCommonPythonD vtkImaging vtkImagingPythonD)
  TARGET_LINK_LIBRARIES(vtkmyImagingPython vtkmyImagingPythonD)
33
34
35
36
  SET_TARGET_PROPERTIES(vtkmyImagingPython PROPERTIES PREFIX "")
  IF(WIN32 AND NOT CYGWIN)
    SET_TARGET_PROPERTIES(vtkmyImagingPython PROPERTIES SUFFIX ".pyd")
  ENDIF(WIN32 AND NOT CYGWIN)
37
ENDIF (VTK_WRAP_PYTHON AND VTKMY_WRAP_PYTHON)
38

39
# Create the vtkmyImaging Java library.
40
IF (VTK_WRAP_JAVA AND VTKMY_WRAP_JAVA)
41
  VTK_WRAP_JAVA3 (vtkmyImagingJava ImagingJava_SRCS "${Imaging_SRCS}")
42
  ADD_LIBRARY (vtkmyImagingJava SHARED ${ImagingJava_SRCS})
43
  TARGET_LINK_LIBRARIES (vtkmyImagingJava vtkmyCommonJava vtkmyImaging vtkImagingJava)
44
ENDIF (VTK_WRAP_JAVA AND VTKMY_WRAP_JAVA)