OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON)
OPTION(SALOME_PARAVIS_ALL_TEST "Add all tests for Salome PARAVIS module" OFF)
OPTION(SALOME_PARAVIS_BUILD_PLUGINS "Build PARAVIS plugins (MEDReader, etc ...)" ON)
-OPTION(SALOME_PARAVIS_BUILD_CORBA_PLUGINS "Build PARAVIS CORBA plugins (ParaMEDCorba -- this requires the SALOME MED module)" ON)
+OPTION(SALOME_PARAVIS_BUILD_CORBA_PLUGINS "Build PARAVIS CORBA plugins (ParaMEDCorba -- this requires the SALOME FIELDS module)" ON)
OPTION(SALOME_PARAVIS_USE_GEOM_SOURCE "Import a GEOMETRY object to PARAVIS via its Corba IOR" OFF)
OPTION(SALOME_PARAVIS_USE_SMESH_SOURCE "Import a MESH object to PARAVIS via its Corba IOR" OFF)
CMAKE_DEPENDENT_OPTION(SALOME_LIGHT_ONLY "Build SALOME Light only (no CORBA)" OFF
IF(SALOME_PARAVIS_BUILD_PLUGINS)
# If CORBA plugins required, take in MED module
IF(SALOME_PARAVIS_BUILD_CORBA_PLUGINS)
- SET(MED_ROOT_DIR $ENV{MED_ROOT_DIR} CACHE PATH "Path to the SALOME MED module")
- IF(EXISTS ${MED_ROOT_DIR})
- LIST(APPEND CMAKE_MODULE_PATH "${MED_ROOT_DIR}/adm_local/cmake_files")
- FIND_PACKAGE(SalomeMED)
- SALOME_LOG_OPTIONAL_PACKAGE(SalomeMED SALOME_PARAVIS_BUILD_CORBA_PLUGINS)
+ SET(FIELDS_ROOT_DIR $ENV{FIELDS_ROOT_DIR} CACHE PATH "Path to the SALOME FIELDS module")
+ IF(EXISTS ${FIELDS_ROOT_DIR})
+ LIST(APPEND CMAKE_MODULE_PATH "${FIELDS_ROOT_DIR}/adm_local/cmake_files")
+ FIND_PACKAGE(SalomeFIELDS)
+ SALOME_LOG_OPTIONAL_PACKAGE(SalomeFIELDS SALOME_PARAVIS_BUILD_CORBA_PLUGINS)
IF(SALOME_USE_MPI)
SET(SALOME_PARAVIS_BUILD_INSITU ON)
ENDIF(SALOME_USE_MPI)
# Ensure the variables are always defined for the configure:
SET(KERNEL_ROOT_DIR "${KERNEL_ROOT_DIR}")
SET(GUI_ROOT_DIR "${GUI_ROOT_DIR}")
-SET(MED_ROOT_DIR "${MED_ROOT_DIR}")
+SET(FIELDS_ROOT_DIR "${FIELDS_ROOT_DIR}")
SET(MEDFILE_ROOT_DIR "${MEDFILE_ROOT_DIR}")
SET(MEDCOUPLING_ROOT_DIR "${MEDCOUPLING_ROOT_DIR}")
SET(GEOM_ROOT_DIR "${GEOM_ROOT_DIR}")
${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
INSTALL_DESTINATION "${SALOME_INSTALL_CMAKE_LOCAL}"
PATH_VARS CONF_INCLUDE_DIRS SALOME_INSTALL_CMAKE_LOCAL CMAKE_INSTALL_PREFIX
- KERNEL_ROOT_DIR GUI_ROOT_DIR MED_ROOT_DIR MEDFILE_ROOT_DIR MEDCOUPLING_ROOT_DIR GEOM_ROOT_DIR SMESH_ROOT_DIR)
+ KERNEL_ROOT_DIR GUI_ROOT_DIR FIELDS_ROOT_DIR MEDFILE_ROOT_DIR MEDCOUPLING_ROOT_DIR GEOM_ROOT_DIR SMESH_ROOT_DIR)
# - in the install tree (VSR 16/08/2013: TEMPORARILY COMMENT THIS - TO REMOVE?):
# Get the relative path of the include directory so
# ${PROJECT_BINARY_DIR}/to_install/${PROJECT_NAME}Config.cmake
# INSTALL_DESTINATION "${SALOME_INSTALL_CMAKE_LOCAL}"
# PATH_VARS CONF_INCLUDE_DIRS SALOME_INSTALL_CMAKE_LOCAL CMAKE_INSTALL_PREFIX
-# KERNEL_ROOT_DIR GUI_ROOT_DIR MED_ROOT_DIR MEDFILE_ROOT_DIR)
+# KERNEL_ROOT_DIR GUI_ROOT_DIR FIELDS_ROOT_DIR MEDFILE_ROOT_DIR)
WRITE_BASIC_PACKAGE_VERSION_FILE(${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
VERSION ${${PROJECT_NAME_UC}_VERSION}
SET_AND_CHECK(KERNEL_ROOT_DIR_EXP "@PACKAGE_KERNEL_ROOT_DIR@")
SET_AND_CHECK(GUI_ROOT_DIR_EXP "@PACKAGE_GUI_ROOT_DIR@")
IF(SALOME_PARAVIS_BUILD_PLUGINS)
- SET_AND_CHECK(MED_ROOT_DIR_EXP "@PACKAGE_MED_ROOT_DIR@")
- LIST(APPEND PARAVIS_DEFINITIONS "@MED_DEFINITIONS@")
+ SET_AND_CHECK(FIELDS_ROOT_DIR_EXP "@PACKAGE_FIELDS_ROOT_DIR@")
+ LIST(APPEND PARAVIS_DEFINITIONS "@FIELDS_DEFINITIONS@")
ENDIF()
IF(SALOME_PARAVIS_USE_GEOM_SOURCE)
INCLUDE("${GUI_ROOT_DIR_EXP}/${SALOME_INSTALL_CMAKE_LOCAL}/SalomeGUITargets.cmake")
ENDIF()
IF(SALOME_PARAVIS_BUILD_PLUGINS)
- # Include MED targets if they were not already loaded:
+ # Include FIELDS targets if they were not already loaded:
IF(NOT (TARGET SalomeIDLMED))
- INCLUDE("${MED_ROOT_DIR_EXP}/${SALOME_INSTALL_CMAKE_LOCAL}/SalomeMEDTargets.cmake")
+ INCLUDE("${FIELDS_ROOT_DIR_EXP}/${SALOME_INSTALL_CMAKE_LOCAL}/SalomeFIELDSTargets.cmake")
ENDIF()
ENDIF()
IF(SALOME_PARAVIS_USE_GEOM_SOURCE)
${OMNIORB_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}
${PROJECT_BINARY_DIR}/idl
- ${MED_INCLUDE_DIRS}
+ ${FIELDS_INCLUDE_DIRS}
${MEDCOUPLING_INCLUDE_DIRS}
)
SET(_idl_include_dirs
${KERNEL_ROOT_DIR}/idl/salome
- ${MED_ROOT_DIR}/idl/salome
+ ${FIELDS_ROOT_DIR}/idl/salome
)
SET(_idl_link_flags
${KERNEL_SalomeIDLKernel}
- ${MED_SalomeIDLMED}
+ ${FIELDS_SalomeIDLMED}
)
OMNIORB_ADD_MODULE(SalomeIDLPARAVIS "${SalomeIDLPARAVIS_IDLSOURCES}" "${_idl_include_dirs}" "${_idl_link_flags}")
INSTALL(TARGETS SalomeIDLPARAVIS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
-ENDIF(SALOME_PARAVIS_BUILD_INSITU)
\ No newline at end of file
+ENDIF(SALOME_PARAVIS_BUILD_INSITU)
${OMNIORB_INCLUDE_DIR}
${PROJECT_BINARY_DIR}
${PROJECT_BINARY_DIR}/idl
- ${MED_INCLUDE_DIRS}
+ ${FIELDS_INCLUDE_DIRS}
${MEDCOUPLING_INCLUDE_DIRS}
${CMAKE_CURRENT_SOURCE_DIR}/../VisualizationLibrary
)
# --- definitions ---
ADD_DEFINITIONS(
${OMNIORB_DEFINITIONS}
- ${MED_DEFINITIONS}
+ ${FIELDS_DEFINITIONS}
${MEDCOUPLING_DEFINITIONS}
)
${KERNEL_SalomeMPIContainer}
MEDLoaderForPV
visulib
- ${MED_SalomeIDLMED}
- ${MED_med}
- ${MED_medcouplingcorba}
- ${MED_medcouplingclient}
-
- ${MED_paramedmemcompo}
- ${MED_paramedcouplingcorba}
+ ${FIELDS_SalomeIDLMED}
+ ${FIELDS_medcouplingcorba}
+ ${FIELDS_medcouplingclient}
+ ${FIELDS_paramedmemcompo}
+ ${FIELDS_paramedcouplingcorba}
)
# --- headers ---
${MEDCOUPLING_INCLUDE_DIRS}
${MEDFILE_INCLUDE_DIRS}
${HDF5_INCLUDE_DIRS}
- ${MED_ROOT_DIR}/include/salome
+ ${FIELDS_ROOT_DIR}/include/salome
)
IF(HDF5_IS_PARALLEL)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../..)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/../..)
INCLUDE_DIRECTORIES(${MEDCOUPLING_INCLUDE_DIRS} ${MEDFILE_INCLUDE_DIRS} ${HDF5_INCLUDE_DIRS})
-INCLUDE_DIRECTORIES(${MED_ROOT_DIR}/include/salome)
+INCLUDE_DIRECTORIES(${FIELDS_ROOT_DIR}/include/salome)
SET( TestMedReader_SRCS TestMedReader.cxx )
SERVER_MANAGER_XML ParaMEDCorbaServerManager.xml
SERVER_MANAGER_SOURCES ${PARACORBAPLUG_SRCS} )
- INCLUDE_DIRECTORIES(${OMNIORB_INCLUDE_DIR} ${MED_ROOT_DIR}/include/salome ${KERNEL_ROOT_DIR}/include/salome)
+ INCLUDE_DIRECTORIES(${OMNIORB_INCLUDE_DIR} ${FIELDS_ROOT_DIR}/include/salome ${KERNEL_ROOT_DIR}/include/salome)
ADD_DEFINITIONS(${OMNIORB_DEFINITIONS})
TARGET_LINK_LIBRARIES(ParaMEDMEM2VTK
vtkPVVTKExtensionsRendering
pqCore
${OMNIORB_LIBRARIES}
- ${MED_SalomeIDLMED}
+ ${FIELDS_SalomeIDLMED}
${KERNEL_SalomeIDLKernel}
)
TARGET_LINK_LIBRARIES(ParaMEDCorbaPlugin