CMakeLists.txt 1.94 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# Source files
#
# Here is where you can add the name of your local common classes.
#

SOURCE_FILES (Common_SRCS
  vtkBar
)

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

#
# Create the vtkmyCommon C++ library
#

ADD_LIBRARY (vtkmyCommon Common_SRCS)

#
# Create the vtkmyCommon Tcl library
#

IF (VTKMY_WRAP_TCL)
25

26
  VTK_WRAP_TCL (vtkmyCommonTCL CommonTCL_SRCS Common_SRCS)
27
  ADD_LIBRARY (vtkmyCommonTCL CommonTCL_SRCS)
28
29
30
31
32
33
34
35
36
37
  TARGET_LINK_LIBRARIES (vtkmyCommonTCL 
                         vtkCommonTCL 
                         ${TCL_LIBRARY})
ENDIF (VTKMY_WRAP_TCL)

#
# Create the vtkmyCommon Python library
#

IF (VTKMY_WRAP_PYTHON)
38

39
  VTK_WRAP_PYTHON (vtkmyCommonPython CommonPython_SRCS Common_SRCS)
40

41
42
43
44
45
46
47
  IF (APPLE)
    ADD_LIBRARY (vtkmyCommonPython MODULE CommonPython_SRCS)
  ELSE (APPLE)
    ADD_LIBRARY (vtkmyCommonPython SHARED CommonPython_SRCS)
    TARGET_LINK_LIBRARIES (vtkmyCommonPython 
	                   vtkCommonPython)
  ENDIF (APPLE)
48

49
50
51
52
53
54
55
56
57
58
  IF(WIN32)
    TARGET_LINK_LIBRARIES (vtkmyCommonPython 
	                   vtkCommonPython
                           debug ${PYTHON_DEBUG_LIBRARY} 
                           optimized ${PYTHON_LIBRARY})
  ELSE(WIN32)
    TARGET_LINK_LIBRARIES (vtkmyCommonPython 
	                   vtkCommonPython
                           ${PYTHON_LIBRARY})
  ENDIF(WIN32)
59

60
61
62
63
64
65
66
ENDIF (VTKMY_WRAP_PYTHON)

#
# Create the vtkmyCommon Java library
#

IF (VTKMY_WRAP_JAVA)
67

68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
  VTK_WRAP_TCL (vtkmyCommonJava CommonJava_SRCS Common_SRCS)
  ADD_LIBRARY (vtkmyCommonJava SHARED CommonJava_SRCS)
  TARGET_LINK_LIBRARIES (vtkmyCommonJava 
                         vtkCommonJava)
ENDIF (VTKMY_WRAP_JAVA)

#
# Link to VTK and local
#

LINK_LIBRARIES (
  vtkmyCommon
  vtkCommon 
)

#
# Common configuration settings
#
# Do not worry about this one.
#

CONFIGURE_FILE(
  ${VTKMY_SOURCE_DIR}/Common/vtkmyConfigure.h.in 
  ${VTKMY_BINARY_DIR}/Common/vtkmyConfigure.h
)