-# Copyright (C) 2012-2021 CEA/DEN, EDF R&D
+# Copyright (C) 2012-2022 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
FIND_PACKAGE(SWIG REQUIRED)
INCLUDE(${SWIG_USE_FILE})
-INCLUDE(tests.set)
+IF(MEDCOUPLING_BUILD_PY_TESTS)
+ INCLUDE(tests.set)
+ENDIF()
ADD_DEFINITIONS(${PYTHON_DEFINITIONS} ${NUMPY_DEFINITIONS} ${SCIPY_DEFINITIONS})