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

SOURCE_FILES (Imaging_SRCS
8
  vtkImageFoo.cxx
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
)

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

#
# Create the vtkmyImaging C++ library
#

ADD_LIBRARY (vtkmyImaging Imaging_SRCS)

#
# Create the vtkmyImaging Tcl library
#

24
IF (VTK_WRAP_TCL AND VTKMY_WRAP_TCL)
25

26
  VTK_WRAP_TCL (vtkmyImagingTCL ImagingTCL_SRCS Imaging_SRCS)
27
  ADD_LIBRARY (vtkmyImagingTCL ImagingTCL_SRCS)
28
29
30
31
32
33
  TARGET_LINK_LIBRARIES (vtkmyImagingTCL 
                         vtkImagingTCL 
                         vtkFilteringTCL 
                         vtkmyCommonTCL
                         vtkCommonTCL
                         ${TCL_LIBRARY})
34
ENDIF (VTK_WRAP_TCL AND VTKMY_WRAP_TCL)
35
36
37
38
39

#
# Create the vtkmyImaging Python library
#

40
IF (VTK_WRAP_PYTHON AND VTKMY_WRAP_PYTHON)
41

42
  VTK_WRAP_PYTHON (vtkmyImagingPython ImagingPython_SRCS Imaging_SRCS)
43

44
45
46
47
48
49
50
51
52
53
  IF (APPLE)
    ADD_LIBRARY (vtkmyImagingPython MODULE ImagingPython_SRCS)
  ELSE (APPLE)
    ADD_LIBRARY (vtkmyImagingPython SHARED ImagingPython_SRCS)
    TARGET_LINK_LIBRARIES (vtkmyImagingPython 
                           vtkImagingPython
                           vtkFilteringPython
                           vtkmyCommonPython
                           vtkCommonPython)
  ENDIF (APPLE)
54

55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
  IF(WIN32)
    TARGET_LINK_LIBRARIES (vtkmyImagingPython 
                           vtkImagingPython
                           vtkFilteringPython
                           vtkmyCommonPython
                           vtkCommonPython
                           debug ${PYTHON_DEBUG_LIBRARY} 
                           optimized ${PYTHON_LIBRARY})
  ELSE(WIN32)
    TARGET_LINK_LIBRARIES (vtkmyImagingPython 
                           vtkImagingPython
                           vtkFilteringPython
                           vtkmyCommonPython
                           vtkCommonPython
                           ${PYTHON_LIBRARY})
  ENDIF(WIN32)
71

72
ENDIF (VTK_WRAP_PYTHON AND VTKMY_WRAP_PYTHON)
73
74
75
76
77

#
# Create the vtkmyImaging Java library
#

78
IF (VTK_WRAP_JAVA AND VTKMY_WRAP_JAVA)
79

80
  VTK_WRAP_JAVA (vtkmyImagingJava ImagingJava_SRCS Imaging_SRCS)
81
82
83
84
85
86
  ADD_LIBRARY (vtkmyImagingJava SHARED ImagingJava_SRCS)
  TARGET_LINK_LIBRARIES (vtkmyImagingJava 
                         vtkImagingJava
                         vtkFilteringJava
                         vtkmyCommonJava
                         vtkCommonJava)
87
88

ENDIF (VTK_WRAP_JAVA AND VTKMY_WRAP_JAVA)
89
90
91
92
93
94
95
96
97
98
99
100

#
# Link to VTK and local
#

LINK_LIBRARIES (
  vtkmyImaging
  vtkImaging 
  vtkFiltering
  vtkmyCommon
  vtkCommon
)