Skip to content

Commit

Permalink
BUG: Fix MRMLDisplayableManagerCxxTests
Browse files Browse the repository at this point in the history
MRMLDisplayableManagerCxxTests is a test source file and not a test.
Updated the CMakeLists.txt file to follow pattern used in other CxxTests.

(cherry picked from commit ded0ddb)
  • Loading branch information
lassoan authored and jcfr committed May 10, 2024
1 parent 2978b56 commit 10ae009
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Libs/MRML/DisplayableManager/Testing/Cxx/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
set(KIT ${PROJECT_NAME})

set(CMAKE_TESTDRIVER_BEFORE_TESTMAIN "DEBUG_LEAKS_ENABLE_EXIT_ERROR();" )
create_test_sourcelist(Tests ${KIT}CxxTests.cxx
set(KIT_TEST_SRCS
vtkMRMLCameraDisplayableManagerTest1.cxx
vtkMRMLCameraWidgetTest1.cxx
vtkMRMLModelDisplayableManagerTest.cxx
Expand All @@ -10,12 +10,12 @@ create_test_sourcelist(Tests ${KIT}CxxTests.cxx
vtkMRMLThreeDViewDisplayableManagerFactoryTest1.cxx
vtkMRMLDisplayableManagerFactoriesTest1.cxx
vtkMRMLSliceViewDisplayableManagerFactoryTest.cxx
)
create_test_sourcelist(Tests ${KIT}CxxTests.cxx
${KIT_TEST_SRCS}
EXTRA_INCLUDE vtkMRMLDebugLeaksMacro.h
)

set(TestsToRun ${Tests})
list(REMOVE_ITEM TestsToRun ${KIT}CxxTests.cxx)

include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
)
Expand Down Expand Up @@ -46,7 +46,7 @@ set_target_properties(${KIT}CxxTests PROPERTIES FOLDER ${${PROJECT_NAME}_FOLDER}
# Add all the tests
#
set(TEMP "${Slicer_BINARY_DIR}/Testing/Temporary")
foreach(test ${TestsToRun})
foreach(test ${KIT_TEST_SRCS})
get_filename_component(TESTNAME ${test} NAME_WE)
simple_test(
${TESTNAME}
Expand Down

0 comments on commit 10ae009

Please sign in to comment.