]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
[EDF31321]: Add bootsrap in dependence duc/odys_suit_integration
authorDUC ANH HOANG <dh77501n@dsp1043837>
Fri, 20 Dec 2024 09:57:47 +0000 (10:57 +0100)
committerDUC ANH HOANG <dh77501n@dsp1043837>
Fri, 20 Dec 2024 09:57:47 +0000 (10:57 +0100)
CMakeLists.txt

index d11acbd7669c5187314eda7f7b835935f3891b89..2642f29c01721628033b8e337e5dc44931864986 100644 (file)
@@ -40,6 +40,17 @@ 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")