-# Copyright (C) 2010-2020 CEA/DEN, EDF R&D
+# Copyright (C) 2010-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
add_subdirectory(MEDLoaderForPV)
add_subdirectory(ParaViewPlugin)
-option(BUILD_TESTING "Build Plugin Testing" OFF)
-if (BUILD_TESTING)
+if (CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
+ # option to build tests in a standalone mode
+ option(BUILD_TESTING "Build Plugin Testing" OFF)
+endif()
+if (SALOME_BUILD_TESTS OR BUILD_TESTING)
add_subdirectory(Test)
endif()