From a5c668a78a5db49cd483a7165e380df7f7f71ba8 Mon Sep 17 00:00:00 2001 From: rnv Date: Wed, 15 Feb 2017 18:17:11 +0300 Subject: [PATCH] Migration to OpenCASCADE CMake configuration --- CMakeLists.txt | 2 +- src/HEXABLOCK/CMakeLists.txt | 22 +++++++++++----------- src/HEXABLOCKGUI/CMakeLists.txt | 4 ++-- src/HEXABLOCK_SWIG/CMakeLists.txt | 15 ++++----------- 4 files changed, 18 insertions(+), 25 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ae5c4f9..cb4cc12 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -128,7 +128,7 @@ IF(SALOME_BUILD_GUI) ENDIF(SALOME_BUILD_GUI) # OCCT -FIND_PACKAGE(SalomeCAS REQUIRED) +FIND_PACKAGE(SalomeOpenCASCADE REQUIRED) # VTK FIND_PACKAGE(SalomeVTK REQUIRED) diff --git a/src/HEXABLOCK/CMakeLists.txt b/src/HEXABLOCK/CMakeLists.txt index 6bf4dc9..eb6586a 100644 --- a/src/HEXABLOCK/CMakeLists.txt +++ b/src/HEXABLOCK/CMakeLists.txt @@ -22,7 +22,7 @@ INCLUDE_DIRECTORIES( ${KERNEL_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS} - ${CAS_INCLUDE_DIRS} + ${OpenCASCADE_INCLUDE_DIR} ${VTK_INCLUDE_DIRS} ${GEOM_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} @@ -33,21 +33,21 @@ INCLUDE_DIRECTORIES( # additional preprocessor / compiler flags ADD_DEFINITIONS( ${KERNEL_DEFINITIONS} - ${CAS_DEFINITIONS} + ${OpenCASCADE_DEFINITIONS} ${BOOST_DEFINITIONS} ) # libraries to link to SET(_link_LIBRARIES - ${CAS_TKBRep} - ${CAS_TKPrim} - ${CAS_TKG3d} - ${CAS_TKG2d} - ${CAS_TKTopAlgo} - ${CAS_TKGeomBase} - ${CAS_TKGeomAlgo} - ${CAS_TKBool} - ${CAS_TKBO} + TKBRep + TKPrim + TKG3d + TKG2d + TKTopAlgo + TKGeomBase + TKGeomAlgo + TKBool + TKBO ${KERNEL_SALOMELocalTrace} ${KERNEL_SALOMEBasics} ${PYTHON_LIBRARIES} diff --git a/src/HEXABLOCKGUI/CMakeLists.txt b/src/HEXABLOCKGUI/CMakeLists.txt index 3dd8de2..7521a42 100644 --- a/src/HEXABLOCKGUI/CMakeLists.txt +++ b/src/HEXABLOCKGUI/CMakeLists.txt @@ -29,7 +29,7 @@ INCLUDE_DIRECTORIES( ${OMNIORB_INCLUDE_DIR} ${LIBXML2_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} - ${CAS_INCLUDE_DIRS} + ${OpenCASCADE_INCLUDE_DIR} ${VTK_INCLUDE_DIRS} ${KERNEL_INCLUDE_DIRS} ${GUI_INCLUDE_DIRS} @@ -47,7 +47,7 @@ INCLUDE_DIRECTORIES( ADD_DEFINITIONS( ${BOOST_DEFINITIONS} ${OMNIORB_DEFINITIONS} - ${CAS_DEFINITIONS} + ${OpenCASCADE_DEFINITIONS} ${KERNEL_DEFINITIONS} ) diff --git a/src/HEXABLOCK_SWIG/CMakeLists.txt b/src/HEXABLOCK_SWIG/CMakeLists.txt index 5541e99..f6680e4 100644 --- a/src/HEXABLOCK_SWIG/CMakeLists.txt +++ b/src/HEXABLOCK_SWIG/CMakeLists.txt @@ -24,7 +24,7 @@ INCLUDE(${SWIG_USE_FILE}) INCLUDE_DIRECTORIES( ${KERNEL_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS} - ${CAS_INCLUDE_DIRS} + ${OpenCASCADE_INCLUDE_DIR} ${VTK_INCLUDE_DIRS} ${GEOM_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} @@ -35,7 +35,7 @@ INCLUDE_DIRECTORIES( # additional preprocessor / compiler flags ADD_DEFINITIONS( ${KERNEL_DEFINITIONS} - ${CAS_DEFINITIONS} + ${OpenCASCADE_DEFINITIONS} ${BOOST_DEFINITIONS} ) @@ -43,15 +43,8 @@ ADD_DEFINITIONS( SET(_link_LIBRARIES ${PYTHON_LIBRARIES} ${GEOM_GEOMBase} - ${CAS_TKBRep} - ${CAS_TKPrim} - ${CAS_TKG3d} - ${CAS_TKG2d} - ${CAS_TKTopAlgo} - ${CAS_TKGeomBase} - ${CAS_TKGeomAlgo} - ${CAS_TKBool} - ${CAS_TKBO} + ${OpenCASCADE_ModelingData_LIBRARIES} + ${OpenCASCADE_ModelingAlgorithms_LIBRARIES} ${KERNEL_SALOMELocalTrace} ${KERNEL_SALOMEBasics} HEXABLOCKEngine -- 2.39.2