Skip to content

Commit c74ad24

Browse files
authored
Merge pull request #132 from DCBIA-OrthoLab/ashmoy-patch-10
Update CMakeLists.txt
2 parents e403748 + 62f3d92 commit c74ad24

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

BATCHDENTALSEG/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ set(MODULE_PYTHON_SCRIPTS
1010
BATCHDENTALSEGLib/SegmentationWidget.py
1111
BATCHDENTALSEGLib/Signal.py
1212
BATCHDENTALSEGLib/Utils.py
13+
Testing/__init__.py
14+
Testing/IntegrationTestCase.py
15+
Testing/SegmentationWidgetTestCase.py
16+
Testing/Utils.py
1317
)
1418

1519
set(MODULE_PYTHON_RESOURCES
@@ -18,6 +22,8 @@ set(MODULE_PYTHON_RESOURCES
1822
Resources/Icons/info.png
1923
Resources/Icons/loading.gif
2024
Resources/Icons/start_icon.png
25+
Testing/Data/PostDentalSurgery_Segmentation.nii.gz
26+
Testing/Data/PostDentalSurgery_Segmentation_1_3_5.nii.gz
2127
)
2228

2329
#-----------------------------------------------------------------------------
@@ -27,5 +33,10 @@ slicerMacroBuildScriptedModule(
2733
RESOURCES ${MODULE_PYTHON_RESOURCES}
2834
WITH_GENERIC_TESTS
2935
)
36+
if(BUILD_TESTING)
3037

38+
# Register the unittest subclass in the main script as a ctest.
39+
# Note that the test will also be available at runtime.
40+
slicer_add_python_unittest(SCRIPT ${MODULE_NAME}.py)
41+
endif()
3142
#-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)