PATH_SUFFIXES "/lib/python${_py_version}/site-packages/omniidl_be" "/lib/omniidl/omniidl_be" "/lib/python/omniidl_be"
DOC "Path to python-backend directory (omniidl_be) including python.py file")
+FIND_PATH(OMNIORBPY_INCLUDE_DIR
+ NAMES omniORBpy.h
+ PATHS "${OMNIORBPY_ROOT_DIR}" "/usr"
+ PATHS_SUFFIXES "/include"
+ DOC "Path to omniORBpy include directory")
+
##############################################################################
# Cook our stuff
##############################################################################
MARK_AS_ADVANCED(OMNIORB_PYTHON_BACKEND)
+MARK_AS_ADVANCED(OMNIORBPY_INCLUDE_DIR)
SET(OMNIORB_IDLPYFLAGS)
IF (OMNIORB_PYTHON_BACKEND)
# Handle standard arguments:
INCLUDE(FindPackageHandleStandardArgs)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(OmniORBPy REQUIRED_VARS OMNIORB_PYTHON_BACKEND)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(OmniORBPy REQUIRED_VARS OMNIORB_PYTHON_BACKEND OMNIORBPY_INCLUDE_DIR)
ENDIF()
IF(OMNIORBPY_FOUND)
+ SALOME_ACCUMULATE_HEADERS(${OMNIORBPY_INCLUDE_DIR})
SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${OMNIORBPY_LIBRARIES})
SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH ${OMNIORBPY_LIBRARIES}
${OMNIORBPY_PYTHONPATH})