-# 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
find_package(SalomeMEDCoupling REQUIRED)
find_package(SalomeMEDFile REQUIRED)
-if(MEDCOUPLING_USE_64BIT_IDS)
- add_definitions("-DMEDCOUPLING_USE_64BIT_IDS")
-endif(MEDCOUPLING_USE_64BIT_IDS)
-
SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH NOCHECK ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_BINS}
${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_PYTHON})
SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH NOCHECK ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_LIBS})
add_subdirectory(MEDLoaderForPV)
add_subdirectory(ParaViewPlugin)
-SET(SALOME_BUILD_TESTS ON CACHE BOOL "Enable testing")
-if (SALOME_BUILD_TESTS)
+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()