Commit 859c0801 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

Moving smTestDriver to utiltiies.

This will enable us to install(and export) the smTestDriver for development
installs. That way applications built from development install can add tests
that use the smTestDriver.

Change-Id: I29e67c17224a84aacf8f559d66fc4bb6db3d2dab
parent 0038e5c9
......@@ -486,3 +486,21 @@ macro(pv_set_link_interface_libs target)
PROPERTY LINK_INTERFACE_LIBRARIES "${ARGN}")
endif()
endmacro()
#------------------------------------------------------------------------------
# Function used to add install rules for executables (non-test and
# non-development tools).
#------------------------------------------------------------------------------
function (pv_executable_install name exe_suffix)
if (VTK_INSTALL_NO_RUNTIME)
return()
endif()
install(TARGETS ${name}
DESTINATION ${VTK_INSTALL_RUNTIME_DIR}
COMPONENT Runtime)
if (exe_suffix)
install(TARGETS ${name}${exe_suffix}
DESTINATION ${VTK_INSTALL_LIBRARY_DIR}
COMPONENT Runtime)
endif()
endfunction()
......@@ -359,6 +359,10 @@ else()
list(APPEND ParaViewModulesDirs
ThirdParty/IceT)
endif()
if (BUILD_TESTING)
list (APPEND ParaViewModulesDirs
Utilities/TestDriver)
endif()
foreach(dir ${ParaViewModulesDirs})
vtk_add_to_module_search_path(
......
......@@ -49,5 +49,14 @@ MARK_AS_ADVANCED(PV_TEST_CLIENT)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/vtkSMTestDriverConfig.h.in
${CMAKE_CURRENT_BINARY_DIR}/vtkSMTestDriverConfig.h @ONLY ESCAPE_QUOTES)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
vtk_module_test_executable(smTestDriver vtkSMTestDriver)
vtk_module_impl()
vtk_add_executable(smTestDriver
vtkSMTestDriver.cxx
vtkSMTestDriver.h)
vtk_module_export(
vtkSMTestDriver.cxx
vtkSMTestDriver.h)
target_link_libraries(smTestDriver
vtksys
vtkCommonCore)
vtk_module(smTestDriver
GROUPS
ParaViewCore
DEPENDS
vtksys
vtkCommonCore
EXCLUDE_FROM_WRAPPING)
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