CMakeLists.txt 1.49 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
  INCLUDE_DIRECTORIES("${PYTHON_INCLUDE_PATH}")
28
  VTK_WRAP_PYTHON3 (vtkmyCommonPython CommonPython_SRCS "${Common_SRCS}")
29
30
31
32
  ADD_LIBRARY (vtkmyCommonPythonD ${CommonPython_SRCS})
  ADD_LIBRARY (vtkmyCommonPython MODULE vtkmyCommonPythonInit.cxx)
  TARGET_LINK_LIBRARIES(vtkmyCommonPythonD vtkmyCommon vtkCommon vtkCommonPythonD)
  TARGET_LINK_LIBRARIES(vtkmyCommonPython vtkmyCommonPythonD)
33
ENDIF (VTK_WRAP_PYTHON AND VTKMY_WRAP_PYTHON)
34

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