OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ${SALOME_BUILD_TESTS})
# Advanced options:
-OPTION(SALOME_GEOM_USE_GUI "Enable GUI" ON)
+OPTION(SALOME_BUILD_GUI "Enable GUI" ON)
OPTION(SALOME_GEOM_USE_OPENCV "Enable shape recognition from picture" ON)
-MARK_AS_ADVANCED(SALOME_GEOM_USE_GUI SALOME_GEOM_USE_OPENCV)
+MARK_AS_ADVANCED(SALOME_BUILD_GUI SALOME_GEOM_USE_OPENCV)
# Prerequisites
# =============
FIND_PACKAGE(SalomeOmniORB REQUIRED)
FIND_PACKAGE(SalomeOmniORBPy REQUIRED)
#FIND_PACKAGE(SalomeLibXml2 REQUIRED)
-#FIND_PACKAGE(SalomeHDF5 REQUIRED COMPONENTS C)
+FIND_PACKAGE(SalomeHDF5 REQUIRED COMPONENTS C)
# Other KERNEL optionals:
-# IF(SALOME_USE_MPI)
-# FIND_PACKAGE(SalomeMPI REQUIRED)
-# IF(HDF5_IS_PARALLEL)
-# SALOME_ADD_MPI_TO_HDF5()
-# ENDIF()
-# ENDIF()
+IF(SALOME_USE_MPI)
+ FIND_PACKAGE(SalomeMPI) # needed for doc generation by Sphinx
+ENDIF()
IF(SALOME_BUILD_TESTS)
ENABLE_TESTING()
FIND_PACKAGE(SalomeCppUnit)
ENDIF()
# Find GUI (optional)
-IF(SALOME_GEOM_USE_GUI)
+IF(SALOME_BUILD_GUI)
SET(GUI_ROOT_DIR $ENV{GUI_ROOT_DIR} CACHE PATH "Path to the Salome GUI")
IF(EXISTS ${GUI_ROOT_DIR})
LIST(APPEND CMAKE_MODULE_PATH "${GUI_ROOT_DIR}/adm_local/cmake_files")
ELSE(EXISTS ${GUI_ROOT_DIR})
MESSAGE(STATUS "GUI_ROOT_DIR is not well defined, GEOM will be built without GUI!!!")
ENDIF(EXISTS ${GUI_ROOT_DIR})
- SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(SalomeGUI SALOME_GEOM_USE_GUI)
-ENDIF(SALOME_GEOM_USE_GUI)
+ SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(SalomeGUI SALOME_BUILD_GUI)
+ENDIF(SALOME_BUILD_GUI)
##
## Prerequisites From GUI:
##
-IF(SALOME_GEOM_USE_GUI)
+IF(SALOME_BUILD_GUI)
# Qt4
FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui QtXml)
SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(VTK SALOME_USE_VTKVIEWER)
ENDIF()
-ENDIF(SALOME_GEOM_USE_GUI)
+ENDIF(SALOME_BUILD_GUI)
##
## GEOM specifics
FIND_PACKAGE(SalomeCAS REQUIRED)
-IF(SALOME_GEOM_USE_GUI)
+IF(SALOME_BUILD_GUI)
# OpenCV
- FIND_PACKAGE(OpenCV)
-ENDIF(SALOME_GEOM_USE_GUI)
-SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(OPENCV SALOME_GEOM_USE_OPENCV)
+ FIND_PACKAGE(SalomeOpenCV)
+ SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(OpenCV SALOME_GEOM_USE_OPENCV)
+ELSE()
+ SET(SALOME_GEOM_USE_OPENCV OFF)
+ENDIF(SALOME_BUILD_GUI)
# Detection summary:
SALOME_PACKAGE_REPORT()
GEOMUtils GEOMEngine GEOM_SupervEngine IGESExport IGESImport NMTDS NMTTools GEOMSketcher
SalomeIDLGEOM STEPExport STEPImport STLExport ShHealOper
)
-IF(SALOME_GEOM_USE_GUI)
+IF(SALOME_BUILD_GUI)
LIST(APPEND _${PROJECT_NAME}_exposed_targets
AdvancedGUI BasicGUI BlocksGUI BooleanGUI BuildGUI DisplayGUI DlgRef EntityGUI GEOMBase
GEOMFiltersSelection GEOM GEOMToolsGUI GenerationGUI GroupGUI Material MeasureGUI GEOMObject
OCC2VTK VTKExport OperationGUI PrimitiveGUI RepairGUI TransformationGUI
)
-ENDIF(SALOME_GEOM_USE_GUI)
+ENDIF(SALOME_BUILD_GUI)
IF(SALOME_GEOM_USE_OPENCV)
LIST(APPEND _${PROJECT_NAME}_exposed_targets
# Ensure the variables are always defined for the configure:
SET(CAS_ROOT_DIR "${CAS_ROOT_DIR}")
SET(OPENCV_ROOT_DIR "${OPENCV_ROOT_DIR}")
+SET(GUI_ROOT_DIR "$GUI_ROOT_DIR}")
SET(CONF_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/include" "${PROJECT_BINARY_DIR}/include")
CONFIGURE_PACKAGE_CONFIG_FILE(adm_local/cmake_files/${PROJECT_NAME}Config.cmake.in
# Author: Adrien Bruneton
#
-# OpenGL detection dor Salome
+# OpenCV detection dor Salome
#
# !! Please read the generic detection procedure in SalomeMacros.cmake !!
#
-SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(OpenCV OpenCV_DIR)
+SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(OpenCV OpenCV_DIR 2)
#MARK_AS_ADVANCED()
SET(SALOME_BUILD_TESTS @SALOME_BUILD_TESTS@)
# Advanced options
-SET(SALOME_GEOM_USE_GUI @SALOME_GEOM_USE_GUI@)
+SET(SALOME_BUILD_GUI @SALOME_BUILD_GUI@)
SET(SALOME_GEOM_USE_OPENCV @SALOME_GEOM_USE_OPENCV@)
# Level 1 prerequisites:
SET_AND_CHECK(CAS_ROOT_DIR_EXP "@PACKAGE_CAS_ROOT_DIR@")
# Optional level 1 prerequisites:
-IF(SALOME_GEOM_USE_GUI)
+IF(SALOME_BUILD_GUI)
SET_AND_CHECK(GUI_ROOT_DIR_EXP "@PACKAGE_GUI_ROOT_DIR@")
ENDIF()
IF(SALOME_GEOM_USE_OPENCV)
STRING(REPLACE "/" "\\" SCR "@SET PYTHONPATH=${CMAKE_INSTALL_PREFIX}\\lib\\${_pydir}\\site-packages\\salome\;%PYTHONPATH%
@SET PYTHONPATH=${CMAKE_INSTALL_PREFIX}\\bin\\salome\;%PYTHONPATH%
@SET PATH=${CMAKE_INSTALL_PREFIX}\\lib\\salome\;%PATH%
+ @SET PYTHONPATH=${CMAKE_INSTALL_PREFIX}\\${SALOME_INSTALL_PYTHON}\;%PYTHONPATH%
+ @SET PYTHONPATH=${CMAKE_INSTALL_PREFIX}\\${SALOME_INSTALL_PYTHON_SHARED}\;%PYTHONPATH%
+ @SET PYTHONPATH=${HDF5_ROOT_DIR}\\lib\;%PYTHONPATH%
+ @SET PYTHONPATH=${MPI_ROOT_DIR}\\lib\;%PYTHONPATH%
+
+ @SET PYTHONPATH=${KERNEL_ROOT_DIR}\\bin\\salome\;%PYTHONPATH%
+ @SET PATH=${KERNEL_ROOT_DIR}\\lib\\salome\;%PATH%
+ @SET PYTHONPATH=${KERNEL_ROOT_DIR}\\${SALOME_INSTALL_PYTHON}\;%PYTHONPATH%
+ @SET PYTHONPATH=${KERNEL_ROOT_DIR}\\${SALOME_INSTALL_PYTHON_SHARED}\;%PYTHONPATH%
+
@SET PYTHONPATH=${OMNIORB_ROOT_DIR}\\lib\\x86_win32\;%PYTHONPATH%
@SET PYTHONPATH=${OMNIORB_ROOT_DIR}\\lib\\python\;%PYTHONPATH%
@SET PATH=${OMNIORB_ROOT_DIR}\\lib\\x86_win32\;%PATH%
SET(SCR " export PYTHONPATH=${CMAKE_INSTALL_PREFIX}/lib/${_pydir}/site-packages/salome:\${PYTHONPATH}
export PYTHONPATH=${CMAKE_INSTALL_PREFIX}/bin/salome:\${PYTHONPATH}
export LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib/salome:\${LD_LIBRARY_PATH}
+ export PYTHONPATH=${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_PYTHON}:\${PYTHONPATH}
+ export PYTHONPATH=${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_PYTHON_SHARED}:\${PYTHONPATH}
+ export PYTHONPATH=${HDF5_ROOT_DIR}/lib:\${PYTHONPATH}
+ export PYTHONPATH=${MPI_ROOT_DIR}/lib:\${PYTHONPATH}
+
+ export PYTHONPATH=${KERNEL_ROOT_DIR}/bin/salome:\${PYTHONPATH}
+ export LD_LIBRARY_PATH=${KERNEL_ROOT_DIR}/lib/salome:\${LD_LIBRARY_PATH}
+ export PYTHONPATH=${KERNEL_ROOT_DIR}/${SALOME_INSTALL_PYTHON}:\${PYTHONPATH}
+ export PYTHONPATH=${KERNEL_ROOT_DIR}/${SALOME_INSTALL_PYTHON_SHARED}:\${PYTHONPATH}
+
export PYTHONPATH=${OMNIORB_ROOT_DIR}/lib:\${PYTHONPATH}
export PYTHONPATH=${OMNIORB_ROOT_DIR}/lib/${_pydir}/site-packages:\${PYTHONPATH}
export PYTHONPATH=${OMNIORBPY_ROOT_DIR}/lib:\${PYTHONPATH}
export LD_LIBRARY_PATH=${OMNIORB_ROOT_DIR}/lib:\${LD_LIBRARY_PATH}
export PYTHONPATH=${SETUPTOOLS_ROOT_DIR}/lib/${_pydir}/site-packages:\${PYTHONPATH}
export PYTHONPATH=${DOCUTILS_ROOT_DIR}/lib/${_pydir}/site-packages:\${PYTHONPATH}
- export PYTHONPATH=${SPHINX_ROOT_DIR}/lib/${_pydir}/site-packages:\${PYTHONPATH}"
+ export PYTHONPATH=${SPHINX_ROOT_DIR}/lib/${_pydir}/site-packages:\${PYTHONPATH}
+"
)
SET(EXT "sh")
SET(CALL_STR ".")
# Common packages
##
SET(SUBDIRS_COMMON
- ARCHIMEDE NMTDS NMTTools BlockFix GEOMAlgo SKETCHER OCC2VTK GEOM BREPExport
- BREPImport IGESExport IGESImport STEPExport STEPImport STLExport VTKExport
+ ARCHIMEDE NMTDS NMTTools BlockFix GEOMAlgo SKETCHER GEOM BREPExport
+ BREPImport IGESExport IGESImport STEPExport STEPImport STLExport
ShHealOper GEOMUtils GEOMImpl GEOM_I GEOMClient GEOM_I_Superv GEOM_SWIG GEOM_PY
)
##
# GUI
##
-IF(SALOME_GEOM_USE_GUI)
+IF(SALOME_BUILD_GUI)
SET(SUBDIRS_GUI
- OBJECT DlgRef GEOMFiltersSelection Material GEOMGUI GEOMBase
- GEOMToolsGUI DisplayGUI BasicGUI PrimitiveGUI GenerationGUI
+ OBJECT OCC2VTK VTKExport DlgRef GEOMFiltersSelection Material GEOMGUI
+ GEOMBase GEOMToolsGUI DisplayGUI BasicGUI PrimitiveGUI GenerationGUI
EntityGUI BuildGUI BooleanGUI TransformationGUI OperationGUI
RepairGUI MeasureGUI GroupGUI BlocksGUI AdvancedGUI AdvancedEngine
GEOM_SWIG_WITHIHM
${PROJECT_SOURCE_DIR}/src/GEOMGUI
${PROJECT_SOURCE_DIR}/src/GEOMBase
${PROJECT_SOURCE_DIR}/src/SKETCHER
+ ${PROJECT_SOURCE_DIR}/src/ShapeRecognition
${PROJECT_SOURCE_DIR}/src/DlgRef
${PROJECT_BINARY_DIR}/src/DlgRef
${CMAKE_CURRENT_SOURCE_DIR}
# optional sources
IF(SALOME_GEOM_USE_OPENCV)
- SET( FeatureDetectorDlg_Sources FeatureDetectorDlg.cxx )
+ SET( FeatureDetectorDlg_Sources EntityGUI_FeatureDetectorDlg.cxx )
SET( FeatureDetectorDlg_moc_h EntityGUI_FeatureDetectorDlg.h )
ENDIF()
#include <GeometryGUI.h>
#include <EntityGUI.h>
#include <GEOMBase.h>
-#include <GEOM_Object.hxx>
#include <SUIT_Desktop.h>
#include <SUIT_ResourceMgr.h>