-# Copyright (C) 2017-2020 CEA/DEN, EDF R&D
+# Copyright (C) 2017-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
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-INCLUDE(tests.set)
+IF(MEDCOUPLING_BUILD_PY_TESTS)
+ INCLUDE(tests.set)
+ENDIF()
FOREACH(tfile ${BASE_TESTS})
GET_FILENAME_COMPONENT(BASE_NAME ${tfile} NAME_WE)