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

7
SET (Common_SRCS
8
  vtkBar.cxx
9
10
11
12
13
)

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

14
15
16
# Create the vtkmyCommon C++ library.
ADD_LIBRARY (vtkmyCommon ${Common_SRCS})
TARGET_LINK_LIBRARIES (vtkmyCommon vtkCommon)
17

18
# Create the vtkmyCommon Tcl library.
19
IF (VTK_WRAP_TCL AND VTKMY_WRAP_TCL)
20
  VTK_WRAP_TCL3 (vtkmyCommonTCL CommonTCL_SRCS "${Common_SRCS}" "")
21
22
  ADD_LIBRARY (vtkmyCommonTCL ${CommonTCL_SRCS})
  TARGET_LINK_LIBRARIES (vtkmyCommonTCL vtkmyCommon vtkCommonTCL)
23
ENDIF (VTK_WRAP_TCL AND VTKMY_WRAP_TCL)
24

25
# Create the vtkmyCommon Python library.
26
IF (VTK_WRAP_PYTHON AND VTKMY_WRAP_PYTHON)
27
28
29
30
31
  VTK_WRAP_PYTHON3 (vtkmyCommonPython CommonPython_SRCS ${Common_SRCS})
  ADD_LIBRARY (vtkmyCommonPythonD ${CommonPython_SRCS})
  ADD_LIBRARY (vtkmyCommonPython MODULE vtkmyCommonPythonInit.cxx)
  TARGET_LINK_LIBRARIES(vtkmyCommonPythonD vtkmyCommon vtkCommon vtkCommonPythonD)
  TARGET_LINK_LIBRARIES(vtkmyCommonPython vtkmyCommonPythonD)
32
ENDIF (VTK_WRAP_PYTHON AND VTKMY_WRAP_PYTHON)
33

34
# Create the vtkmyCommon Java library.
35
IF (VTK_WRAP_JAVA AND VTKMY_WRAP_JAVA)
36
  VTK_WRAP_JAVA3 (vtkmyCommonJava CommonJava_SRCS ${Common_SRCS})
37
38
  ADD_LIBRARY (vtkmyCommonJava SHARED ${CommonJava_SRCS})
  TARGET_LINK_LIBRARIES (vtkmyCommonJava vtkmyCommon vtkCommonJava)
39
ENDIF (VTK_WRAP_JAVA AND VTKMY_WRAP_JAVA)