#
###############################################################
-# Copyright (C) 2007-2014 CEA/DEN, EDF R&D
+# Copyright (C) 2007-2015 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
SET(SALOME_PARAVIS_BUILD_DOC @SALOME_BUILD_DOC@)
SET(SALOME_PARAVIS_BUILD_TESTS @SALOME_BUILD_TESTS@)
SET(SALOME_PARAVIS_LIGHT_ONLY @SALOME_LIGHT_ONLY@)
+SET(SALOME_PARAVIS_USE_GEOM_SOURCE @SALOME_PARAVIS_USE_GEOM_SOURCE@)
+SET(SALOME_PARAVIS_USE_SMESH_SOURCE @SALOME_PARAVIS_USE_SMESH_SOURCE@)
-# Advanced options
-SET(SALOME_USE_OCCVIEWER @SALOME_USE_OCCVIEWER@)
-SET(SALOME_USE_GLVIEWER @SALOME_USE_GLVIEWER@)
-SET(SALOME_USE_VTKVIEWER @SALOME_USE_VTKVIEWER@)
-SET(SALOME_USE_PLOT2DVIEWER @SALOME_USE_PLOT2DVIEWER@)
# Level 1 prerequisites:
SET_AND_CHECK(KERNEL_ROOT_DIR_EXP "@PACKAGE_KERNEL_ROOT_DIR@")
SET_AND_CHECK(MED_ROOT_DIR_EXP "@PACKAGE_MED_ROOT_DIR@")
LIST(APPEND PARAVIS_DEFINITIONS "@MED_DEFINITIONS@")
ENDIF()
+
+IF(SALOME_PARAVIS_USE_GEOM_SOURCE)
+ SET_AND_CHECK(GEOM_ROOT_DIR_EXP "@PACKAGE_GEOM_ROOT_DIR@")
+ LIST(APPEND PARAVIS_DEFINITIONS "@GEOM_DEFINITIONS@")
+ENDIF()
+
+IF(SALOME_PARAVIS_USE_SMESH_SOURCE)
+ SET_AND_CHECK(SMESH_ROOT_DIR_EXP "@PACKAGE_SMESH_ROOT_DIR@")
+ LIST(APPEND PARAVIS_DEFINITIONS "@SMESH_DEFINITIONS@")
+ENDIF()
+
SET_AND_CHECK(MEDFILE_ROOT_DIR_EXP "@PACKAGE_MEDFILE_ROOT_DIR@")
# Optional level 1 prerequisites:
INCLUDE("${MED_ROOT_DIR_EXP}/${SALOME_INSTALL_CMAKE_LOCAL}/SalomeMEDTargets.cmake")
ENDIF()
ENDIF()
+IF(SALOME_PARAVIS_USE_GEOM_SOURCE)
+ # Include GEOM targets if they were not already loaded:
+ IF(NOT TARGET SalomeIDLGEOM)
+ INCLUDE("${GEOM_ROOT_DIR_EXP}/${SALOME_INSTALL_CMAKE_LOCAL}/SalomeGEOMTargets.cmake")
+ ENDIF()
+ENDIF()
+IF(SALOME_PARAVIS_USE_SMESH_SOURCE)
+ # Include GEOM targets if they were not already loaded:
+ IF(NOT TARGET SalomeIDLSMESH)
+ INCLUDE("${SMESH_ROOT_DIR_EXP}/${SALOME_INSTALL_CMAKE_LOCAL}/SalomeSMESHTargets.cmake")
+ ENDIF()
+ENDIF()
# Exposed PARAVIS targets:
SET(PARAVIS_SalomeIDLPARAVIS SalomeIDLPARAVIS)