File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,9 @@ endmacro()
108
108
# // ${EXAMPLE_NAME}TestPython.
109
109
# )
110
110
function (compare_to_baseline )
111
- set (options )
111
+ set (options
112
+ PYTHON_ONLY
113
+ )
112
114
113
115
set (oneValueArgs
114
116
EXAMPLE_NAME
@@ -160,6 +162,7 @@ function(compare_to_baseline)
160
162
set (test_name ${LOCAL_COMPARISON_TEST_NAME} )
161
163
endif ()
162
164
165
+ if (NOT ${PYTHON_ONLY} )
163
166
add_test (NAME ${test_name}
164
167
COMMAND "${CMAKE_RUNTIME_OUTPUT_DIRECTORY} /ImageCompareCommand"
165
168
--test-image "${test_image} "
@@ -169,6 +172,7 @@ function(compare_to_baseline)
169
172
set_tests_properties (${test_name}
170
173
PROPERTIES DEPENDS ${depends}
171
174
)
175
+ endif ()
172
176
173
177
if (ITK_WRAP_PYTHON AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR} /${LOCAL_COMPARISON_EXAMPLE_NAME} /Code.py" )
174
178
set (python_test_name ${test_name} Python )
You can’t perform that action at this time.
0 commit comments