From f55dbc13fbec4fec0e89940f7c102c7ab54ae90d Mon Sep 17 00:00:00 2001 From: DUC ANH HOANG Date: Thu, 5 Dec 2024 15:01:53 +0100 Subject: [PATCH] [EDF31321]: Add bootsrap in smesh's dependence --- CMakeLists.txt | 12 ++++++++++++ src/SMESHUtils/CMakeLists.txt | 2 ++ 2 files changed, 14 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 290aa7c1c..a720e5588 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,6 +41,18 @@ ENDIF() SALOME_SETUP_VERSION(9.13.0) MESSAGE(STATUS "Building ${PROJECT_NAME_UC} ${${PROJECT_NAME_UC}_VERSION} from \"${${PROJECT_NAME_UC}_GIT_SHA1}\"") + +# Find SalomeBootstrap +# =========== +SET(SALOMEBOOTSTRAP_ROOT_DIR $ENV{SALOMEBOOTSTRAP_ROOT_DIR} CACHE PATH "Path to the Salome Bootstrap") +IF(EXISTS ${SALOMEBOOTSTRAP_ROOT_DIR}) + FIND_PACKAGE(SalomeBootstrap REQUIRED) + ADD_DEFINITIONS(${SALOMEBOOTSTRAP_DEFINITIONS}) + INCLUDE_DIRECTORIES(${SALOMEBOOTSTRAP_INCLUDE_DIRS}) +ELSE(EXISTS ${SALOMEBOOTSTRAP_ROOT_DIR}) + MESSAGE(FATAL_ERROR "We absolutely need a Salome Bootstrap, please define SALOMEBOOTSTRAP_ROOT_DIR") +ENDIF(EXISTS ${SALOMEBOOTSTRAP_ROOT_DIR}) + # Find KERNEL # =========== SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR} CACHE PATH "Path to the Salome KERNEL") diff --git a/src/SMESHUtils/CMakeLists.txt b/src/SMESHUtils/CMakeLists.txt index 872661bcc..2e1bf3f7d 100644 --- a/src/SMESHUtils/CMakeLists.txt +++ b/src/SMESHUtils/CMakeLists.txt @@ -23,6 +23,7 @@ INCLUDE_DIRECTORIES( ${KERNEL_INCLUDE_DIRS} ${OpenCASCADE_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} + ${SALOMEBOOTSTRAP_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/src/SMDS ) @@ -38,6 +39,7 @@ SET(_link_LIBRARIES ${OpenCASCADE_FoundationClasses_LIBRARIES} ${OpenCASCADE_ModelingData_LIBRARIES} ${Boost_LIBRARIES} + SALOMEException SMDS )