X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FCMakeLists.txt;h=4b3c816daaf11e37c831e3c8fdd5a24cef7f11d4;hb=a211165b993cec59888b300199b44b525c0daf69;hp=0c1b55f631789742e3e3fbda3368b4d723324efe;hpb=be64040b813dafc3c3aa8f8196229d42c2bc9195;p=modules%2Fshaper.git diff --git a/src/GeomAPI/CMakeLists.txt b/src/GeomAPI/CMakeLists.txt index 0c1b55f63..4b3c816da 100644 --- a/src/GeomAPI/CMakeLists.txt +++ b/src/GeomAPI/CMakeLists.txt @@ -1,22 +1,21 @@ -## Copyright (C) 2014-2017 CEA/DEN, EDF R&D -## -## 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, 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 -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -## Lesser General Public License for more details. -## -## You should have received a copy of the GNU Lesser General Public -## License along with this library; if not, write to the Free Software -## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -## -## See http:##www.salome-platform.org/ or -## email : webmaster.salome@opencascade.com -## +# Copyright (C) 2014-2019 CEA/DEN, EDF R&D +# +# 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, 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 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# FIND_PACKAGE(SWIG REQUIRED) @@ -26,6 +25,8 @@ INCLUDE(UnitTest) SET(PROJECT_HEADERS GeomAPI.h + GeomAPI_BSpline.h + GeomAPI_BSpline2d.h GeomAPI_Circ.h GeomAPI_Circ2d.h GeomAPI_Interface.h @@ -68,9 +69,13 @@ SET(PROJECT_HEADERS GeomAPI_Cone.h GeomAPI_Torus.h GeomAPI_Box.h + GeomAPI_WireExplorer.h + GeomAPI_ShapeHierarchy.h ) SET(PROJECT_SOURCES + GeomAPI_BSpline.cpp + GeomAPI_BSpline2d.cpp GeomAPI_Circ.cpp GeomAPI_Circ2d.cpp GeomAPI_Interface.cpp @@ -113,6 +118,8 @@ SET(PROJECT_SOURCES GeomAPI_Cone.cpp GeomAPI_Torus.cpp GeomAPI_Box.cpp + GeomAPI_WireExplorer.cpp + GeomAPI_ShapeHierarchy.cpp ) SET(PROJECT_LIBRARIES @@ -124,7 +131,7 @@ SET(PROJECT_LIBRARIES ADD_DEFINITIONS(-DGEOMAPI_EXPORTS ${OpenCASCADE_DEFINITIONS}) ADD_LIBRARY(GeomAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS}) -SET(CMAKE_SWIG_FLAGS -threads -Wall) +SET(CMAKE_SWIG_FLAGS -threads -w325,321,362,383,512) SET_SOURCE_FILES_PROPERTIES(GeomAPI.i PROPERTIES CPLUSPLUS ON) SET_SOURCE_FILES_PROPERTIES(GeomAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow") @@ -160,11 +167,17 @@ INSTALL(TARGETS GeomAPI DESTINATION ${SHAPER_INSTALL_BIN}) INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION ${SHAPER_INSTALL_SWIG}) ADD_UNIT_TESTS( + TestAx123.py TestBox.py + TestBuilders.py TestCone.py TestCylinder.py + TestEllipse2d.py + TestLine.py + TestPlanarEdge.py TestPolygon.py TestSphere.py TestTorus.py Test2675.py + Test2879.py )