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

SOURCE_FILES (Common_SRCS
8
  vtkBar.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 vtkmyCommon C++ library
#

ADD_LIBRARY (vtkmyCommon Common_SRCS)

#
# Create the vtkmyCommon Tcl library
#

24
IF (VTK_WRAP_TCL AND VTKMY_WRAP_TCL)
25

26
  VTK_WRAP_TCL (vtkmyCommonTCL CommonTCL_SRCS Common_SRCS)
27
  ADD_LIBRARY (vtkmyCommonTCL CommonTCL_SRCS)
28
29
30
  TARGET_LINK_LIBRARIES (vtkmyCommonTCL 
                         vtkCommonTCL 
                         ${TCL_LIBRARY})
31
32

ENDIF (VTK_WRAP_TCL AND VTKMY_WRAP_TCL)
33
34
35
36
37

#
# Create the vtkmyCommon Python library
#

38
IF (VTK_WRAP_PYTHON AND VTKMY_WRAP_PYTHON)
39

40
  VTK_WRAP_PYTHON (vtkmyCommonPython CommonPython_SRCS Common_SRCS)
41

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

50
51
52
53
54
55
56
57
58
59
  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)
60

61
ENDIF (VTK_WRAP_PYTHON AND VTKMY_WRAP_PYTHON)
62
63
64
65
66

#
# Create the vtkmyCommon Java library
#

67
IF (VTK_WRAP_JAVA AND VTKMY_WRAP_JAVA)
68

69
  VTK_WRAP_JAVA (vtkmyCommonJava CommonJava_SRCS Common_SRCS)
70
71
72
  ADD_LIBRARY (vtkmyCommonJava SHARED CommonJava_SRCS)
  TARGET_LINK_LIBRARIES (vtkmyCommonJava 
                         vtkCommonJava)
73
74

ENDIF (VTK_WRAP_JAVA AND VTKMY_WRAP_JAVA)
75
76
77
78
79
80
81
82
83

#
# Link to VTK and local
#

LINK_LIBRARIES (
  vtkmyCommon
  vtkCommon 
)