#cmakedefine SALOME_USE_64BIT_IDS
+#include "Basics_OCCTVersion.hxx"
+
#include <cinttypes>
+#include <cstddef>
#include <limits>
#ifndef SALOME_USE_64BIT_IDS
struct smIdHasher
{
+#if OCC_VERSION_LARGE < 0x07080000
static int HashCode(const smIdType theValue, const int theUpperBound)
{
return static_cast<int> ((theValue & std::numeric_limits<smIdType>::max()) % theUpperBound + 1);
{
return id1 == id2;
}
+#else
+ size_t operator()(const smIdType theValue) const
+ {
+ return static_cast<size_t> (theValue & std::numeric_limits<smIdType>::max());
+ }
+ bool operator()(const smIdType& theValue1, const smIdType& theValue2) const
+ {
+ return theValue1 == theValue2;
+ }
+#endif
};
template <class T> inline smIdType ToSmIdType(T val)
#
INCLUDE_DIRECTORIES(
- ${LIBXML2_INCLUDE_DIR}
- ${PTHREAD_INCLUDE_DIR}
- ${OMNIORB_INCLUDE_DIR}
- ${PROJECT_BINARY_DIR}/salome_adm
${CMAKE_CURRENT_SOURCE_DIR}/../Basics
${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace
${CMAKE_CURRENT_SOURCE_DIR}/../NamingService
${CMAKE_CURRENT_SOURCE_DIR}/../Utils
${PROJECT_BINARY_DIR}/idl
+ ${LIBXML2_INCLUDE_DIR}
+ ${PTHREAD_INCLUDE_DIR}
+ ${OMNIORB_INCLUDE_DIR}
+ ${PROJECT_BINARY_DIR}/salome_adm
)
#
INCLUDE_DIRECTORIES(
- ${PTHREAD_INCLUDE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../Basics
${PTHREAD_INCLUDE_DIR}
)
#
INCLUDE_DIRECTORIES(
- ${CPPUNIT_INCLUDE_DIRS}
- ${PTHREAD_INCLUDE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../../Basics
${CMAKE_CURRENT_SOURCE_DIR}/../../Basics/Test
${CMAKE_CURRENT_SOURCE_DIR}/../../SALOMELocalTrace
+ ${CPPUNIT_INCLUDE_DIRS}
+ ${PTHREAD_INCLUDE_DIR}
)
ADD_DEFINITIONS(${CPPUNIT_DEFINITIONS})
#
INCLUDE_DIRECTORIES(
- ${OMNIORB_INCLUDE_DIR}
- ${PTHREAD_INCLUDE_DIR}
- ${PROJECT_BINARY_DIR}/salome_adm
${CMAKE_CURRENT_SOURCE_DIR}/../ArgvKeeper
${CMAKE_CURRENT_SOURCE_DIR}/../Basics
${CMAKE_CURRENT_SOURCE_DIR}/../Utils
${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace
- ${CMAKE_CURRENT_SOURCE_DIR}/../Basics
${CMAKE_CURRENT_SOURCE_DIR}/../NamingService
${CMAKE_CURRENT_SOURCE_DIR}/../Logger
${PROJECT_BINARY_DIR}/idl
+ ${OMNIORB_INCLUDE_DIR}
+ ${PTHREAD_INCLUDE_DIR}
+ ${PROJECT_BINARY_DIR}/salome_adm
)
ADD_DEFINITIONS(${OMNIORB_DEFINITIONS} ${PTHREAD_DEFINITIONS})
#
INCLUDE_DIRECTORIES(
- ${CPPUNIT_INCLUDE_DIRS}
- ${PTHREAD_INCLUDE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../../Basics
${CMAKE_CURRENT_SOURCE_DIR}/../../Basics/Test
${CMAKE_CURRENT_SOURCE_DIR}/../../SALOMELocalTrace
${CMAKE_CURRENT_SOURCE_DIR}/../../SALOMELocalTrace/Test
${CMAKE_CURRENT_SOURCE_DIR}/../../SALOMETraceCollector
+ ${CPPUNIT_INCLUDE_DIRS}
+ ${PTHREAD_INCLUDE_DIR}
)
SET(COMMON_LIBS
#
INCLUDE_DIRECTORIES(
+ ${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace
+ ${CMAKE_CURRENT_SOURCE_DIR}/../Basics
+ ${CMAKE_CURRENT_SOURCE_DIR}/../Utils
+ ${PROJECT_BINARY_DIR}/idl
${OMNIORB_INCLUDE_DIR}
${HDF5_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
${PROJECT_BINARY_DIR}/salome_adm
- ${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace
- ${CMAKE_CURRENT_SOURCE_DIR}/../Basics
- ${CMAKE_CURRENT_SOURCE_DIR}/../Utils
- ${PROJECT_BINARY_DIR}/idl
)
ADD_LIBRARY(TOOLSDS SALOMEDS_Tool.cxx)
#
INCLUDE_DIRECTORIES(
- ${PTHREAD_INCLUDE_DIR}
- ${OMNIORB_INCLUDE_DIR}
- ${PROJECT_BINARY_DIR}/salome_adm
${CMAKE_CURRENT_SOURCE_DIR}/../ArgvKeeper
${CMAKE_CURRENT_SOURCE_DIR}/../Basics
${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace
${CMAKE_CURRENT_SOURCE_DIR}/../Container
${CMAKE_CURRENT_SOURCE_DIR}/../GenericObj
${PROJECT_BINARY_DIR}/idl
+ ${PTHREAD_INCLUDE_DIR}
+ ${OMNIORB_INCLUDE_DIR}
+ ${PROJECT_BINARY_DIR}/salome_adm
)
SET(SalomeTestComponentEngine_SOURCES
#
INCLUDE_DIRECTORIES(
- ${MPI_CXX_INCLUDE_PATH}
- ${OMNIORB_INCLUDE_DIR}
- ${PROJECT_BINARY_DIR}/salome_adm
${CMAKE_CURRENT_SOURCE_DIR}/../ArgvKeeper
${CMAKE_CURRENT_SOURCE_DIR}/../Basics
${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace
${CMAKE_CURRENT_SOURCE_DIR}/../MPIContainer
${CMAKE_CURRENT_SOURCE_DIR}/../GenericObj
${PROJECT_BINARY_DIR}/idl
+ ${MPI_CXX_INCLUDE_PATH}
+ ${OMNIORB_INCLUDE_DIR}
+ ${PROJECT_BINARY_DIR}/salome_adm
)
ADD_DEFINITIONS(${OMNIORB_DEFINITIONS} ${MPI_DEFINITIONS})
#
INCLUDE_DIRECTORIES(
- ${CPPUNIT_INCLUDE_DIRS}
- ${PTHREAD_INCLUDE_DIR}
- ${PROJECT_BINARY_DIR}/salome_adm
${CMAKE_CURRENT_SOURCE_DIR}/../Basics
${CMAKE_CURRENT_SOURCE_DIR}/../Basics/Test
${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace
${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace/Test
+ ${CPPUNIT_INCLUDE_DIRS}
+ ${PTHREAD_INCLUDE_DIR}
+ ${PROJECT_BINARY_DIR}/salome_adm
)
# ===============================================================
IF(NOT SALOME_LIGHT_ONLY)
INCLUDE_DIRECTORIES(
- ${OMNIORB_INCLUDE_DIR}
- ${PTHREAD_INCLUDE_DIR}
- ${PROJECT_BINARY_DIR}/salome_adm
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../ArgvKeeper
${CMAKE_CURRENT_SOURCE_DIR}/../Basics
${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace
${PROJECT_BINARY_DIR}/idl
+ ${OMNIORB_INCLUDE_DIR}
+ ${PTHREAD_INCLUDE_DIR}
+ ${PROJECT_BINARY_DIR}/salome_adm
)
ADD_DEFINITIONS(${OMNIORB_DEFINITIONS} ${PTHREAD_DEFINITIONS})
SET(COMMON_LIBS
ELSE()
INCLUDE_DIRECTORIES(
- ${PTHREAD_INCLUDE_DIR}
- ${PROJECT_BINARY_DIR}/salome_adm
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../ArgvKeeper
${CMAKE_CURRENT_SOURCE_DIR}/../Basics
${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace
+ ${PTHREAD_INCLUDE_DIR}
+ ${PROJECT_BINARY_DIR}/salome_adm
)
SET(COMMON_LIBS
ArgvKeeper
#
INCLUDE_DIRECTORIES(
- ${PTHREAD_INCLUDE_DIR}
- ${CPPUNIT_INCLUDE_DIRS}
${CMAKE_CURRENT_SOURCE_DIR}/../../Basics
${CMAKE_CURRENT_SOURCE_DIR}/../../Basics/Test
${CMAKE_CURRENT_SOURCE_DIR}/../../SALOMELocalTrace
${CMAKE_CURRENT_SOURCE_DIR}/../../SALOMETraceCollector/Test
${CMAKE_CURRENT_SOURCE_DIR}/../../Utils
${CMAKE_CURRENT_SOURCE_DIR}/../../Utils/Test
+ ${PTHREAD_INCLUDE_DIR}
+ ${CPPUNIT_INCLUDE_DIRS}
)
SET(COMMON_LIBS