LIST(APPEND CMAKE_MODULE_PATH "${SMESH_ROOT_DIR}/adm_local/cmake_files")
FIND_PACKAGE(SalomeSMESH REQUIRED)
ELSE()
- MESSAGE(FATAL_ERROR "We absolutely need a Salome MESH to import MESH objects to PARAVIS, please define SMESH_ROOT_DIR
- or set SALOME_PARAVIS_USE_SMESH_SOURCE=OFF")
+ MESSAGE(WARNING "Salome MESH is absolutely needed to import MESH objects to PARAVIS.
+ As we do not find it, we set the variable SALOME_PARAVIS_USE_SMESH_SOURCE=OFF.
+ If you really need Salome MESH, please define SMESH_ROOT_DIR and re-run configuration script.")
+ SET(SALOME_PARAVIS_USE_SMESH_SOURCE OFF)
ENDIF()
ELSEIF(NOT SALOME_PARAVIS_BUILD_PLUGINS AND SALOME_PARAVIS_USE_SMESH_SOURCE)
- MESSAGE(FATAL_ERROR "We absolutely need to build PARAVIS plugins to use the import of MESH objects to PARAVIS,
- please set SALOME_PARAVIS_BUILD_PLUGINS=ON
- or SALOME_PARAVIS_USE_SMESH_SOURCE=OFF")
+ MESSAGE(WARNING "PARAVIS plugins must be built to use the import of MESH objects to PARAVIS.
+ As plugins are not built, we set the variable SALOME_PARAVIS_USE_SMESH_SOURCE=OFF.
+ If you really want to use Salome MESH, please set SALOME_PARAVIS_BUILD_PLUGINS=ON and re-run configuration script.")
+ SET(SALOME_PARAVIS_USE_SMESH_SOURCE OFF)
ENDIF()
+ IF(SALOME_BUILD_TESTS)
+ ENABLE_TESTING()
+ FIND_PACKAGE(SalomeCppUnit)
+ SALOME_LOG_OPTIONAL_PACKAGE(CppUnit SALOME_BUILD_TESTS)
+ ENDIF()
+
## Detection summary:
SALOME_PACKAGE_REPORT_AND_CHECK()