Skip to content
Snippets Groups Projects
Commit 2c11e597 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

testing: Don't look for tests when making an executable

Change-Id: Ib4c263cb6c9dbc97883e1f8276a8a16beb149019
parent 7f6395a8
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ function(_vtk_test_parse_args options source_ext)
endforeach()
if(handled)
# Do nothing.
elseif("x${arg}" MATCHES "^x([^.]*)\\.${source_ext},?(.*)$")
elseif(source_ext AND "x${arg}" MATCHES "^x([^.]*)\\.${source_ext},?(.*)$")
set(name "${CMAKE_MATCH_1}")
string(REPLACE "," ";" _${name}_options "${CMAKE_MATCH_2}")
list(APPEND names ${name})
......@@ -269,7 +269,7 @@ function(vtk_test_cxx_executable exename _tests)
set(exe_options
RENDERING_FACTORY
)
_vtk_test_parse_args("${exe_options}" "cxx" ${ARGN})
_vtk_test_parse_args("${exe_options}" "" ${ARGN})
_vtk_test_set_options("${exe_options}" "" ${options})
set(test_driver vtkTestDriver.h)
......@@ -278,11 +278,7 @@ function(vtk_test_cxx_executable exename _tests)
set(test_driver ${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.h)
endif()
set(extra_sources)
foreach(name IN LISTS names)
list(APPEND extra_sources
${name}.cxx)
endforeach()
set(extra_sources ${args})
if(vtk-module)
set(CMAKE_TESTDRIVER_BEFORE_TESTMAIN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment