CMakeLists.txt 1.66 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
21
22
  VTK_WRAP_TCL (vtkmyCommonTCL CommonTCL_SRCS ${Common_SRCS})
  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
  VTK_WRAP_PYTHON (vtkmyCommonPython CommonPython_SRCS ${Common_SRCS})
28
29
30
31
32
  IF (APPLE)
    ADD_LIBRARY (vtkmyCommonPythonD ${CommonPython_SRCS})
    ADD_LIBRARY (vtkmyCommonPython MODULE vtkmyCommonPythonInit.cxx)
    TARGET_LINK_LIBRARIES(vtkmyCommonPythonD vtkmyCommon vtkCommon vtkCommonPythonD)
    TARGET_LINK_LIBRARIES(vtkmyCommonPython vtkmyCommonPythonD)
33
    INSTALL_TARGETS(/lib/vtk vtkmyCommonPythonD)
34
35
36
37
  ELSE(APPLE)
    ADD_LIBRARY (vtkmyCommonPython MODULE ${CommonPython_SRCS})
    TARGET_LINK_LIBRARIES (vtkmyCommonPython vtkmyCommon vtkCommonPython)
  ENDIF(APPLE)
38
ENDIF (VTK_WRAP_PYTHON AND VTKMY_WRAP_PYTHON)
39

40
# Create the vtkmyCommon Java library.
41
IF (VTK_WRAP_JAVA AND VTKMY_WRAP_JAVA)
42
43
44
  VTK_WRAP_JAVA (vtkmyCommonJava CommonJava_SRCS ${Common_SRCS})
  ADD_LIBRARY (vtkmyCommonJava SHARED ${CommonJava_SRCS})
  TARGET_LINK_LIBRARIES (vtkmyCommonJava vtkmyCommon vtkCommonJava)
45
ENDIF (VTK_WRAP_JAVA AND VTKMY_WRAP_JAVA)