From 3da95c31d7238fbe124c4c9875d88f4dce65ef69 Mon Sep 17 00:00:00 2001 From: Hans Johnson Date: Sun, 16 Feb 2020 10:50:46 -0600 Subject: [PATCH] COMP: Enable building without python. --- test/CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index cd29c9d..65beaa1 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -10,7 +10,9 @@ itk_add_test(NAME itkPolarTransformTest COMMAND PolarTransformTestDriver itkPolarTransformTest ) -itk_python_expression_add_test(NAME itkPolarToCartesianTransformPythonTest - EXPRESSION "instance = itk.PolarToCartesianTransform.New()") -itk_python_expression_add_test(NAME itkCartesianToPolarTransformPythonTest - EXPRESSION "instance = itk.CartesianToPolarTransform.New()") +if(ITK_WRAP_PYTHON) + itk_python_expression_add_test(NAME itkPolarToCartesianTransformPythonTest + EXPRESSION "instance = itk.PolarToCartesianTransform.New()") + itk_python_expression_add_test(NAME itkCartesianToPolarTransformPythonTest + EXPRESSION "instance = itk.CartesianToPolarTransform.New()") +endif()