X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FStdMeshers%2FCMakeLists.txt;h=c0097c64a27f2b02d3039ab977164d89605cbf9e;hp=8ac5d13751f7bc1c7ba335dc98bfa8434f2aa5f2;hb=20d9e162bd67182cbfa841bbfc9319919f4703e3;hpb=1bd4ba8acdfe7ab1edc96a016836e174a393d445 diff --git a/src/StdMeshers/CMakeLists.txt b/src/StdMeshers/CMakeLists.txt index 8ac5d1375..c0097c64a 100644 --- a/src/StdMeshers/CMakeLists.txt +++ b/src/StdMeshers/CMakeLists.txt @@ -1,9 +1,9 @@ -# Copyright (C) 2012-2013 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2012-2016 CEA/DEN, EDF R&D, OPEN CASCADE # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either -# version 2.1 of the License. +# version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -29,8 +29,7 @@ INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS} ${KERNEL_INCLUDE_DIRS} - ${GUI_INCLUDE_DIRS} - ${PROJECT_SOURCE_DIR}/src/MEFISTO2 + ${GEOM_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/src/SMESHUtils ${PROJECT_SOURCE_DIR}/src/SMESH ${PROJECT_SOURCE_DIR}/src/SMESHDS @@ -39,6 +38,12 @@ INCLUDE_DIRECTORIES( ${TBB_INCLUDES} ) +IF(SALOME_SMESH_ENABLE_MEFISTO) + INCLUDE_DIRECTORIES( + ${PROJECT_SOURCE_DIR}/src/MEFISTO2 + ) +ENDIF(SALOME_SMESH_ENABLE_MEFISTO) + # additional preprocessor / compiler flags ADD_DEFINITIONS( ${CAS_DEFINITIONS} @@ -56,19 +61,26 @@ SET(_link_LIBRARIES ${CAS_TKAdvTools} ${CAS_TKTopAlgo} ${CAS_TKG3d} + ${CAS_TKOffset} + ${GEOM_GEOMUtils} SMESHimpl SMESHDS - MEFISTO2D ${TBB_LIBS} ) +IF(SALOME_SMESH_ENABLE_MEFISTO) + SET(_link_LIBRARIES ${_link_LIBRARIES} MEFISTO2D) +ENDIF(SALOME_SMESH_ENABLE_MEFISTO) + # --- headers --- # header files / no moc processing SET(StdMeshers_HEADERS StdMeshers_LocalLength.hxx + StdMeshers_Reversible1D.hxx StdMeshers_StartEndLength.hxx StdMeshers_Arithmetic1D.hxx + StdMeshers_Geometric1D.hxx StdMeshers_FixedPoints1D.hxx StdMeshers_NumberOfSegments.hxx StdMeshers_Deflection1D.hxx @@ -79,7 +91,6 @@ SET(StdMeshers_HEADERS StdMeshers_NotConformAllowed.hxx StdMeshers_Regular_1D.hxx StdMeshers_Quadrangle_2D.hxx - StdMeshers_MEFISTO_2D.hxx StdMeshers_Hexa_3D.hxx StdMeshers_Penta_3D.hxx StdMeshers_AutomaticLength.hxx @@ -119,15 +130,22 @@ SET(StdMeshers_HEADERS StdMeshers_Projection_1D2D.hxx StdMeshers_CartesianParameters3D.hxx StdMeshers_Cartesian_3D.hxx + StdMeshers_QuadFromMedialAxis_1D2D.hxx + StdMeshers_PolygonPerFace_2D.hxx ) +IF(SALOME_SMESH_ENABLE_MEFISTO) + SET(StdMeshers_HEADERS ${StdMeshers_HEADERS} StdMeshers_MEFISTO_2D.hxx) +ENDIF(SALOME_SMESH_ENABLE_MEFISTO) # --- sources --- # sources / static SET(StdMeshers_SOURCES StdMeshers_LocalLength.cxx + StdMeshers_Reversible1D.cxx StdMeshers_StartEndLength.cxx StdMeshers_Arithmetic1D.cxx + StdMeshers_Geometric1D.cxx StdMeshers_FixedPoints1D.cxx StdMeshers_NumberOfSegments.cxx StdMeshers_Deflection1D.cxx @@ -138,7 +156,6 @@ SET(StdMeshers_SOURCES StdMeshers_NotConformAllowed.cxx StdMeshers_Regular_1D.cxx StdMeshers_Quadrangle_2D.cxx - StdMeshers_MEFISTO_2D.cxx StdMeshers_Penta_3D.cxx StdMeshers_Hexa_3D.cxx StdMeshers_AutomaticLength.cxx @@ -177,8 +194,15 @@ SET(StdMeshers_SOURCES StdMeshers_Projection_1D2D.cxx StdMeshers_CartesianParameters3D.cxx StdMeshers_Cartesian_3D.cxx + StdMeshers_Adaptive1D.cxx + StdMeshers_QuadFromMedialAxis_1D2D.cxx + StdMeshers_PolygonPerFace_2D.cxx ) +IF(SALOME_SMESH_ENABLE_MEFISTO) + SET(StdMeshers_SOURCES ${StdMeshers_SOURCES} StdMeshers_MEFISTO_2D.cxx) +ENDIF(SALOME_SMESH_ENABLE_MEFISTO) + # --- rules --- ADD_LIBRARY(StdMeshers ${StdMeshers_SOURCES})