Commit c07d84a6 authored by Dave Partyka's avatar Dave Partyka

ENH: switch to use modern target_link_libraries. ENH: must link in X11...

ENH: switch to use modern target_link_libraries. ENH: must link in X11 libraries and Xt library as it is no longer transitively linked in through vtkRendering.
parent 71929b6a
......@@ -11,8 +11,6 @@ IF (VTK_USE_X)
# WARNING: The Motif library HAS to be placed BEFORE the Xt library
# brought in by VTK (see Motif FAQ item 335)
LINK_LIBRARIES(${MOTIF_LIBRARIES})
IF(NOT VTK_BINARY_DIR)
FIND_PACKAGE(VTK)
IF(NOT VTK_DIR)
......@@ -21,7 +19,7 @@ IF (VTK_USE_X)
INCLUDE(${VTK_USE_FILE})
ENDIF(NOT VTK_BINARY_DIR)
LINK_LIBRARIES(
SET(VTK_DEP_LIBS
vtkRendering
vtkGraphics
vtkImaging
......@@ -32,6 +30,8 @@ IF (VTK_USE_X)
ADD_EXECUTABLE(Example1 Example1.cxx)
ADD_EXECUTABLE(Example2 Example2.cxx)
TARGET_LINK_LIBRARIES(Example1 ${MOTIF_LIBRARIES} ${X11_LIBRARIES} ${X11_Xt_LIB} ${VTK_DEP_LIBS})
TARGET_LINK_LIBRARIES(Example2 ${MOTIF_LIBRARIES} ${X11_LIBRARIES} ${X11_Xt_LIB} ${VTK_DEP_LIBS})
ELSE (HAVE_XM_PUSHB_H)
MESSAGE(STATUS "Could not find required Motif header Xm/PushB.h. Not building Motif examples.")
ENDIF (HAVE_XM_PUSHB_H)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment