]> SALOME platform Git repositories - plugins/hexablockplugin.git/commitdiff
Salome HOME
CMake:
authormpa <mpa@opencascade.com>
Tue, 24 Dec 2013 13:40:39 +0000 (13:40 +0000)
committermpa <mpa@opencascade.com>
Tue, 24 Dec 2013 13:40:39 +0000 (13:40 +0000)
- Define HEXABLOCK_ROOT_DIR to use in function CONFIGURE_PACKAGE_CONFIG_FILE()

CMakeLists.txt

index 0b895ae54636088685b8300e008a672d34fa20dc..660d1263d504c0c2dde3b3ff49580e8fcd79e02e 100755 (executable)
@@ -226,6 +226,7 @@ EXPORT(TARGETS ${_${PROJECT_NAME}_exposed_targets}
 
 # Ensure the variables are always defined for the configure:
 SET(SMESH_ROOT_DIR "${SMESH_ROOT_DIR}")
+SET(HEXABLOCK_ROOT_DIR "${HEXABLOCK_ROOT_DIR}")
  
 SET(CONF_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/include" "${PROJECT_BINARY_DIR}/include")
 
@@ -236,7 +237,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
-    SMESH_ROOT_DIR)
+    SMESH_ROOT_DIR HEXABLOCK_ROOT_DIR)
 
 WRITE_BASIC_PACKAGE_VERSION_FILE(${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
     VERSION ${${PROJECT_NAME_UC}_VERSION}