# ------
+SET (boost_versions 1_35 1_38 1_42 1_46_1 1_49 1_52)
+
IF(BOOST_IS_MANDATORY STREQUAL 0)
SET(BOOST_IS_MANDATORY 0)
SET(BOOST_IS_OPTIONAL 1)
IF(BOOST_STATUS)
IF(BOOST_ROOT_USER)
SET(BOOST_INCLUDE_PATHS ${BOOST_ROOT_USER} ${BOOST_ROOT_USER}/include)
+ FOREACH(version ${boost_versions})
+ SET(BOOST_INCLUDE_PATHS ${BOOST_INCLUDE_PATHS} ${BOOST_ROOT_USER}/include/boost-${version})
+ ENDFOREACH(version ${boost_versions})
ELSE(BOOST_ROOT_USER)
SET(BOOST_INCLUDE_PATHS)
ENDIF(BOOST_ROOT_USER)
IF(BOOST_STATUS)
SET(BOOST_LIBS)
- FOREACH(name thread date_time signals filesystem system regex)
+ FOREACH(name thread date_time signals filesystem system regex chrono)
IF(WINDOWS)
IF(CMAKE_BUILD_TYPE STREQUAL Debug)
SET(EXTENSION -gd)
ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
SET(LIB_NAMES)
SET(STATIC_LIB_NAMES)
- FOREACH(version 1_35 1_38 1_42 1_46_1 1_49)
+ FOREACH(version ${boost_versions})
SET(LIB_NAMES ${LIB_NAMES} boost_${name}-vc90-mt${EXTENSION}-${version})
SET(STATIC_LIB_NAMES ${STATIC_LIB_NAMES} libboost_${name}-vc90-mt${EXTENSION}-${version})
- ENDFOREACH(version 1_35 1_38 1_42 1_46_1 1_49)
+ ENDFOREACH(version ${boost_versions})
FIND_LIBRARY(BOOST_LIB_${name} NAMES ${LIB_NAMES} PATHS ${BOOST_LIB_PATHS} ${BOOST_FIND_PATHS_OPTION})
SET(BOOST_LIB_${name}_FOUNDED ${BOOST_LIB_${name}})
IF(NOT BOOST_LIB_${name})
IF(OMNIORB_STATUS)
SET(OMNIIDL_EXECUTABLE_TO_FIND omniidl)
+ IF(WINDOWS)
+ SET( FIND_PATH ${OMNIORB_ROOT_USER}/bin/x86_win32)
+ ELSE(WINDOWS)
+ SET( FIND_PATH ${OMNIORB_ROOT_USER}/bin)
+ ENDIF(WINDOWS)
IF(OMNIORB_ROOT_USER)
- FIND_PROGRAM(OMNIIDL_EXECUTABLE ${OMNIIDL_EXECUTABLE_TO_FIND} PATHS ${OMNIORB_ROOT_USER}/bin)
+ FIND_PROGRAM(OMNIIDL_EXECUTABLE ${OMNIIDL_EXECUTABLE_TO_FIND} PATHS ${FIND_PATH} )
ELSE(OMNIORB_ROOT_USER)
FIND_PROGRAM(OMNIIDL_EXECUTABLE ${OMNIIDL_EXECUTABLE_TO_FIND})
ENDIF(OMNIORB_ROOT_USER)
SET(PLATFORM_LIBS ${PLATFORM_LIBS} Userenv.lib) # At least for GEOM suit
IF("${CMAKE_SIZEOF_VOID_P}" EQUAL "8") # if platform is Windows 64 bit
- SET(PLATFORM_CPPFLAGS "${PLATFORM_CPPFLAGS} -D_SECURE_SCL=0 -D_SECURE_SCL_THROWS=0 -D_HAS_ITERATOR_DEBUGGING=0") # To avoid runtime error during checking iterators # to be removed
+ # To avoid runtime error during checking iterators # to be removed
+ SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -D_SECURE_SCL=0)
+ SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -D_SECURE_SCL_THROWS=0)
+ SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -D_HAS_ITERATOR_DEBUGGING=0)
SET(PLATFORM_DEFINITIONS "${PLATFORM_DEFINITIONS} -D_SECURE_SCL=0 -D_SECURE_SCL_THROWS=0 -D_HAS_ITERATOR_DEBUGGING=0") # To avoid runtime error during checking iterators
ENDIF("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
ELSE(WINDOWS)
IF(PYTHON_LIB)
SET(PYTHON_LIBS ${PYTHON_LIBS} ${PYTHON_LIB})
MESSAGE(STATUS "python lib found: ${PYTHON_LIB}")
+ SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} ${PYTHON_LIB_PATHS})
ELSE(PYTHON_LIB)
SET(PYTHON_STATUS 0)
IF(PYTHON_ROOT_USER)
newlines.append("""
SET(GEOM_ROOT_DIR $ENV{GEOM_ROOT_DIR})
SET(MED_ROOT_DIR $ENV{MED_ROOT_DIR})
+ INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/deprecated/FindQWT.cmake)
INCLUDE(${GEOM_ROOT_DIR}/adm_local/cmake_files/FindGEOM.cmake)
INCLUDE(${MED_ROOT_DIR}/adm_local/cmake_files/FindMEDFILE.cmake)
INCLUDE(${MED_ROOT_DIR}/adm_local/cmake_files/FindMED.cmake)
INCLUDE(${CMAKE_SOURCE_DIR}/adm/cmake/FindEXPAT.cmake)
INCLUDE(${CMAKE_SOURCE_DIR}/adm/cmake/FindGRAPHVIZ.cmake)
INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindSPHINX.cmake)
+
+ SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -D_SECURE_SCL=0)
+ SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -D_SECURE_SCL_THROWS=0)
+ SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -D_HAS_ITERATOR_DEBUGGING=0) # To avoid runtime error during checking iterators
""")
pass
if self.module == "jobmanager":
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+INCLUDE_DIRECTORIES(
+ ${PTHREAD_INCLUDE_DIRS}
+)
+
SET(SALOMEBasics_SOURCES
BasicsGenericDestructor.cxx
Basics_Utils.cxx
#else
signal( SIGINT, SigIntHandler );
- signal( SIGUSR1, SigIntHandler );
+// legacy code required to supervisor. Commented in order to avoid problems on Windows
+// signal( SIGUSR1, SigIntHandler );
#endif
}
#
print
-print "Perform quick test of the application by loading of the GEOM, SMESH, VISU, MED"
+print "Perform quick test of the application by loading of the GEOM, SMESH, MED, PARAVIS"
print "components and doing some operation within the components."
print
print " %d. Check modules availability in the module catalog " % step; step+=1
print "======================================================================"
-print
-print "--- Check GEOM ..."
-comp = catalog.GetComponent("GEOM")
-if not comp:
- raise RuntimeError, "Component GEOM is not found in Module Catalog."
-print "OK"
-
-print
-print "--- Check SMESH ..."
-comp = catalog.GetComponent("SMESH")
-if not comp:
- raise RuntimeError, "Component SMESH is not found in Module Catalog."
-print "OK"
-
-print
-print "--- Check MED ..."
-comp = catalog.GetComponent("MEDOPFactory")
-if not comp:
- raise RuntimeError, "Component MED is not found in Module Catalog."
-print "OK"
-
-print
-print "--- Check PARAVIS ..."
-comp = catalog.GetComponent("PARAVIS")
-if not comp:
- raise RuntimeError, "Component PARAVIS is not found in Module Catalog."
-print "OK"
+for module in [ "GEOM", "SMESH", "MEDOPFactory", "PARAVIS"]:
+ print
+ print "--- Check %s ..." % module
+ comp = catalog.GetComponent(module)
+ if not comp:
+ raise RuntimeError, "Component %s is not found in Module Catalog." % module
+ print "OK"
+ pass
print
# ---- update object browser
if salome.hasDesktop():
- salome.sg.updateObjBrowser(1);
\ No newline at end of file
+ salome.sg.updateObjBrowser(1);
INCLUDE_DIRECTORIES(
${OMNIORB_INCLUDE_DIR}
+ ${PTHREAD_INCLUDE_DIRS}
${PROJECT_BINARY_DIR}/salome_adm
${CMAKE_CURRENT_SOURCE_DIR}/../Basics
${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace
ADD_DEFINITIONS(${OMNIORB_DEFINITIONS})
ADD_LIBRARY(SalomeDSClient SALOMEDSClient_ClientFactory.cxx)
-TARGET_LINK_LIBRARIES(SalomeDSClient SalomeIDLKernel)
+TARGET_LINK_LIBRARIES(SalomeDSClient SalomeIDLKernel ${PLATFORM_LIBS})
INSTALL(TARGETS SalomeDSClient EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../Basics
+ ${PTHREAD_INCLUDE_DIRS}
)
SET(COMMON_HEADERS
<< " - iter " << i);
#endif
pthread_exit(NULL);
- #ifdef WIN32\r
- return NULL;\r
- #endif
+#ifdef WIN32
+ return NULL;
+#endif
}
<< " - iter " << i);
#endif
pthread_exit(NULL);
- #ifdef WIN32\r
- return NULL;\r
- #endif
+#ifdef WIN32
+ return NULL;
+#endif
}