# ===================
SET(CONFIGURATION_ROOT_DIR $ENV{CONFIGURATION_ROOT_DIR} CACHE PATH "Path to the Salome CMake configuration files")
IF(EXISTS ${CONFIGURATION_ROOT_DIR})
+if(${SKBUILD})
+ LIST(APPEND CMAKE_MODULE_PATH "${CONFIGURATION_ROOT_DIR}/share/salome_conf/cmake")
+else(${SKBUILD})
LIST(APPEND CMAKE_MODULE_PATH "${CONFIGURATION_ROOT_DIR}/cmake")
+endif(${SKBUILD})
INCLUDE(SalomeMacros NO_POLICY_SCOPE)
ELSE()
MESSAGE(FATAL_ERROR "We absolutely need the Salome CMake configuration files, please define CONFIGURATION_ROOT_DIR !")
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-INCLUDE(${CONFIGURATION_ROOT_DIR}/cmake/UseOmniORB.cmake)
+if(${SKBUILD})
+ INCLUDE(${CONFIGURATION_ROOT_DIR}/share/salome_conf/cmake/UseOmniORB.cmake)
+else(${SKBUILD})
+ INCLUDE(${CONFIGURATION_ROOT_DIR}/cmake/UseOmniORB.cmake)
+endif(${SKBUILD})
INCLUDE_DIRECTORIES(
${OMNIORB_INCLUDE_DIR}
[build-system]
-requires = ["scikit-build-core"]
+requires = [
+ "scikit-build-core",
+ "omniorb",
+ "libbatch",
+ "salome_conf",
+]
build-backend = "scikit_build_core.build"
[project]
requires-python = ">= 3.7"
license = {file = "COPYING"}
dependencies = [
- # Uncomment when omniorbpy wheel is published
- # "omniorbpy",
+ "omniorb",
+ "libbatch",
"psutil",
"numpy",
]
scipy = ["scipy"]
[tool.scikit-build.cmake.define]
+# SALOME_CMAKE_DEBUG = "ON"
RELOCATABLE = "ON"
SALOME_BUILD_TESTS = "ON"
SALOME_USE_LIBBATCH = "ON"
SALOME_USE_64BIT_IDS = "ON"
SALOME_BUILD_DOC = "OFF"
-OMNIORBPY_ROOT_DIR = {env="OMNIORBPY_DIR", default="EMPTY"}
-LIBBATCH_ROOT_DIR = {env="LIBBATCH_ROOT_DIR", default="EMPTY"}
-CMAKE_MODULE_PATH = {env="CONFIGURATION_CMAKE_DIR", default="EMPTY"}
+OMNIORBPY_ROOT_DIR = {env="VIRTUAL_ENV", default="EMPTY"}
+LIBBATCH_ROOT_DIR = {env="VIRTUAL_ENV", default="EMPTY"}
+CONFIGURATION_ROOT_DIR = {env="VIRTUAL_ENV", default="EMPTY"}
[tool.scikit-build]
cmake.version = ">=3.15"