Commit c801cb77 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

Adding support to install smTestDriver for development install.

Change-Id: I1e32fce04f5bd39da25b3bfe8d5d5c33153dda92
parent 859c0801
......@@ -488,13 +488,9 @@ macro(pv_set_link_interface_libs target)
endmacro()
#------------------------------------------------------------------------------
# Function used to add install rules for executables (non-test and
# non-development tools).
# Function used to add install rules for executables.
#------------------------------------------------------------------------------
function (pv_executable_install name exe_suffix)
if (VTK_INSTALL_NO_RUNTIME)
return()
endif()
install(TARGETS ${name}
DESTINATION ${VTK_INSTALL_RUNTIME_DIR}
COMPONENT Runtime)
......
......@@ -32,23 +32,28 @@ vtk_module_impl()
vtk_module_export("")
foreach (name pvserver pvdataserver pvrenderserver)
vtk_add_executable(${name} ${name}.cxx)
add_executable_with_forwarding(exe_suffix ${name} ${name}.cxx)
#vtk_target_name(${name})
#vtk_target_label(${name})
#vtk_target_install(${name})
target_link_libraries(${name}
if (NOT VTK_INSTALL_NO_RUNTIME)
pv_executable_install(${name} "${exe_suffix}")
endif()
target_link_libraries(${name}${exe_suffix}
vtkPVServerManagerApplication)
endforeach()
if (PARAVIEW_ENABLE_PYTHON)
foreach (name pvbatch pvpython)
vtk_add_executable(${name}
${name}.cxx
add_executable_with_forwarding(exe_suffix ${name} ${name}.cxx
vtkPVPythonOptions.cxx)
#vtk_target_name(${name})
#vtk_target_label(${name})
#vtk_target_install(${name})
target_link_libraries(${name}
if (NOT VTK_INSTALL_NO_RUNTIME)
pv_executable_install(${name} "${exe_suffix}")
endif()
target_link_libraries(${name}${exe_suffix}
vtkPVServerManagerApplication
vtkPVPythonSupport)
endforeach()
......
......@@ -50,13 +50,16 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/vtkSMTestDriverConfig.h.in
${CMAKE_CURRENT_BINARY_DIR}/vtkSMTestDriverConfig.h @ONLY ESCAPE_QUOTES)
vtk_module_impl()
vtk_add_executable(smTestDriver
vtkSMTestDriver.cxx
vtkSMTestDriver.h)
vtk_module_export(
vtk_module_export("")
add_executable_with_forwarding(exe_suffix
smTestDriver
vtkSMTestDriver.cxx
vtkSMTestDriver.h)
target_link_libraries(smTestDriver
target_link_libraries(smTestDriver${exe_suffix}
vtksys
vtkCommonCore)
if (NOT VTK_INSTALL_NO_DEVELOPMENT)
pv_executable_install(smTestDriver "${exe_suffix}")
endif()
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