Salome HOME
IMP: SMESH / CMake build procedure: Added the export of MEDFILE_ROOT_DIR to the confi...
authorrnc <rnc@opencascade.com>
Mon, 14 Oct 2013 09:14:04 +0000 (09:14 +0000)
committerrnc <rnc@opencascade.com>
Mon, 14 Oct 2013 09:14:04 +0000 (09:14 +0000)
CMakeLists.txt
SalomeSMESHConfig.cmake.in

index 43a11d3..e13f8c5 100755 (executable)
@@ -260,6 +260,7 @@ EXPORT(TARGETS ${_${PROJECT_NAME}_exposed_targets}
 
 # Ensure the variables are always defined for the configure:
 SET(GEOM_ROOT_DIR "${GEOM_ROOT_DIR}")
+SET(MEDFILE_ROOT_DIR "${MEDFILE_ROOT_DIR}")
 SET(CGNS_ROOT_DIR "${CGNS_ROOT_DIR}")
 SET(TBB_ROOT_DIR  "${TBB_ROOT_DIR}")
  
@@ -268,7 +269,7 @@ CONFIGURE_PACKAGE_CONFIG_FILE(${PROJECT_NAME}Config.cmake.in
     ${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
-    GEOM_ROOT_DIR CGNS_ROOT_DIR TBB_ROOT_DIR)
+    GEOM_ROOT_DIR MEDFILE_ROOT_DIR CGNS_ROOT_DIR TBB_ROOT_DIR)
 
 WRITE_BASIC_PACKAGE_VERSION_FILE(${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
     VERSION ${${PROJECT_NAME_UC}_VERSION}
index d1f479d..0212e3d 100644 (file)
@@ -56,6 +56,7 @@ SET(SALOME_SMESH_USE_TBB   @SALOME_SMESH_USE_TBB@)
 
 # Level 1 prerequisites:
 SET_AND_CHECK(GEOM_ROOT_DIR_EXP "@PACKAGE_GEOM_ROOT_DIR@")
+SET_AND_CHECK(MEDFILE_ROOT_DIR_EXP "@PACKAGE_MEDFILE_ROOT_DIR@")
 
 # Optional level 1 prerequisites:
 IF(SALOME_SMESH_USE_CGNS)
@@ -135,4 +136,4 @@ SET(SMESH_StdMeshersGUI StdMeshersGUI)
 SET(SMESH_MeshJobManagerEngine MeshJobManagerEngine)
 SET(SMESH_SPADDERPluginTesterEngine SPADDERPluginTesterEngine)
 SET(SMESH_SalomeIDLSMESH SalomeIDLSMESH)
-SET(SMESH_SalomeIDLSPADDER SalomeIDLSPADDER)
\ No newline at end of file
+SET(SMESH_SalomeIDLSPADDER SalomeIDLSPADDER)