INCLUDE(${CMAKE_SOURCE_DIR}/salome_adm/cmake_files/SalomeMacros.cmake)
+SET(CALCIUM_IDL_INT_F77 long)
+SET(CALCIUM_CORBA_INT_F77 CORBA::Long)
+SET(LONG_OR_INT int)
+
+
SET(KERNEL_salomebin_BINS bin/salome)
SET(KERNEL_salomelib_LIBS lib/salome)
##############################################################################
FIND_PATH( OMNIORB_PYTHON_BACKEND
NAMES python.py
- PATHS $ENV{OMNIORB_DIR}/lib/python${PYTHON_VERSION}/site-packages/omniidl_be $ENV{OMNIORBPY_DIR}/lib/python${PYTHON_VERSION}/site-packages/omniidl_be
- ${OMNIORB_DIR}/lib/python${PYTHON_VERSION}/site-packages/omniidl_be ${OMNIORBPY_DIR}/lib/python${PYTHON_VERSION}/site-packages/omniidl_be
+ PATHS $ENV{OMNIORB_DIR}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/omniidl_be $ENV{OMNIORBPY_DIR}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/omniidl_be
+ ${OMNIORB_DIR}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/omniidl_be ${OMNIORBPY_DIR}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/omniidl_be
DOC "Path to python-backend directory (omniidl_be) including python.py file"
NO_DEFAULT_PATH )
SET(OMNIORB_IDLPYFLAGS -bpython)
IF (OMNIORB_PYTHON_BACKEND)
SET(OMNIORB_IDLPYFLAGS "-p ${OMNIORB_PYTHON_BACKEND} ${OMNIORB_IDLPYFLAGS}")
- MESSAGE("Backend python for omniidl: " ${OMNIORB_IDLPYFLAGS})
ENDIF(OMNIORB_PYTHON_BACKEND)
SET(IDLCXXFLAGS ${OMNIORB_IDLCXXFLAGS})
SET(IDLPYFLAGS ${OMNIORB_IDLPYFLAGS})
SET(OMNIORB_DEFINITIONS "${OMNIORB_DEFINITIONS} -D__macos__")#for omnithread.h to be checked...
ENDIF(APPLE)
+
else()
message(FATAL_ERROR "OmniORB is required, please define OMNIORB_DIR as environment or cmake variable")
endif()
/* Operateur de concatenation */
#define _(A,B) A##B
-#ifdef __linux
+#if defined __linux || defined __APPLE__
#define F_FUNC(lname,uname) _(lname,_) /* Fortran function name */
#define F_CALL(lname,uname) _(lname,_) /* Fortran function call */
#define STR_PSTR(str) char *str /* fortran string arg pointer */