1 ## Copyright (C) 2014-2017 CEA/DEN, EDF R&D
3 ## This library is free software; you can redistribute it and/or
4 ## modify it under the terms of the GNU Lesser General Public
5 ## License as published by the Free Software Foundation; either
6 ## version 2.1 of the License, or (at your option) any later version.
8 ## This library is distributed in the hope that it will be useful,
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 ## Lesser General Public License for more details.
13 ## You should have received a copy of the GNU Lesser General Public
14 ## License along with this library; if not, write to the Free Software
15 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 ## See http:##www.salome-platform.org/ or
18 ## email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
21 FIND_PACKAGE(SWIG REQUIRED)
23 INCLUDE(${SWIG_USE_FILE})
24 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
29 GeomAlgoAPI_CompoundBuilder.h
30 GeomAlgoAPI_FaceBuilder.h
31 GeomAlgoAPI_EdgeBuilder.h
32 GeomAlgoAPI_PointBuilder.h
33 GeomAlgoAPI_SketchBuilder.h
35 GeomAlgoAPI_Revolution.h
37 GeomAlgoAPI_Rotation.h
38 GeomAlgoAPI_Translation.h
39 GeomAlgoAPI_MakeShape.h
40 GeomAlgoAPI_MakeShapeCustom.h
41 GeomAlgoAPI_MakeShapeList.h
42 GeomAlgoAPI_MakeSweep.h
43 GeomAlgoAPI_DFLoader.h
44 GeomAlgoAPI_Placement.h
45 GeomAlgoAPI_BREPImport.h
46 GeomAlgoAPI_STEPImport.h
47 GeomAlgoAPI_IGESImport.h
48 GeomAlgoAPI_BREPExport.h
49 GeomAlgoAPI_STEPExport.h
50 GeomAlgoAPI_IGESExport.h
51 GeomAlgoAPI_Transform.h
52 GeomAlgoAPI_ShapeTools.h
53 GeomAlgoAPI_Partition.h
54 GeomAlgoAPI_PaveFiller.h
55 GeomAlgoAPI_Intersection.h
57 GeomAlgoAPI_WireBuilder.h
59 GeomAlgoAPI_ShapeBuilder.h
60 GeomAlgoAPI_ShapeAPI.h
61 GeomAlgoAPI_Exception.h
64 GeomAlgoAPI_Cylinder.h
67 GeomAlgoAPI_XAOExport.h
68 GeomAlgoAPI_XAOImport.h
70 GeomAlgoAPI_ConeSegment.h
71 GeomAlgoAPI_Ellipsoid.h
72 GeomAlgoAPI_Symmetry.h
74 GeomAlgoAPI_Circ2dBuilder.h
79 GeomAlgoAPI_CompoundBuilder.cpp
80 GeomAlgoAPI_FaceBuilder.cpp
81 GeomAlgoAPI_EdgeBuilder.cpp
82 GeomAlgoAPI_PointBuilder.cpp
83 GeomAlgoAPI_SketchBuilder.cpp
85 GeomAlgoAPI_Revolution.cpp
86 GeomAlgoAPI_Boolean.cpp
87 GeomAlgoAPI_Rotation.cpp
88 GeomAlgoAPI_Translation.cpp
89 GeomAlgoAPI_MakeShape.cpp
90 GeomAlgoAPI_MakeShapeCustom.cpp
91 GeomAlgoAPI_MakeShapeList.cpp
92 GeomAlgoAPI_MakeSweep.cpp
93 GeomAlgoAPI_DFLoader.cpp
94 GeomAlgoAPI_Placement.cpp
95 GeomAlgoAPI_BREPImport.cpp
96 GeomAlgoAPI_STEPImport.cpp
97 GeomAlgoAPI_IGESImport.cpp
98 GeomAlgoAPI_BREPExport.cpp
99 GeomAlgoAPI_STEPExport.cpp
100 GeomAlgoAPI_IGESExport.cpp
101 GeomAlgoAPI_Transform.cpp
102 GeomAlgoAPI_ShapeTools.cpp
103 GeomAlgoAPI_Partition.cpp
104 GeomAlgoAPI_PaveFiller.cpp
105 GeomAlgoAPI_Intersection.cpp
107 GeomAlgoAPI_WireBuilder.cpp
108 GeomAlgoAPI_Sewing.cpp
109 GeomAlgoAPI_ShapeBuilder.cpp
110 GeomAlgoAPI_ShapeAPI.cpp
111 GeomAlgoAPI_Exception.cpp
114 GeomAlgoAPI_Cylinder.cpp
115 GeomAlgoAPI_Sphere.cpp
116 GeomAlgoAPI_Torus.cpp
117 GeomAlgoAPI_XAOExport.cpp
118 GeomAlgoAPI_XAOImport.cpp
120 GeomAlgoAPI_ConeSegment.cpp
121 GeomAlgoAPI_Ellipsoid.cpp
122 GeomAlgoAPI_Symmetry.cpp
123 GeomAlgoAPI_Scale.cpp
124 GeomAlgoAPI_Circ2dBuilder.cpp
127 SET(PROJECT_LIBRARIES
150 ADD_DEFINITIONS(-DGEOMALGOAPI_EXPORTS ${CAS_DEFINITIONS})
151 ADD_LIBRARY(GeomAlgoAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
153 SET(CMAKE_SWIG_FLAGS "-Wall")
155 SET_SOURCE_FILES_PROPERTIES(GeomAlgoAPI.i PROPERTIES CPLUSPLUS ON)
156 SET_SOURCE_FILES_PROPERTIES(GeomAlgoAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
166 TARGET_LINK_LIBRARIES(GeomAlgoAPI ${PROJECT_LIBRARIES})
169 ${CMAKE_CURRENT_BINARY_DIR}/GeomAlgoAPI.py
172 SET(SWIG_LINK_LIBRARIES
179 SWIG_ADD_MODULE(GeomAlgoAPI python GeomAlgoAPI.i ${PROJECT_HEADERS})
180 SWIG_LINK_LIBRARIES(GeomAlgoAPI ${SWIG_LINK_LIBRARIES})
183 SET_TARGET_PROPERTIES(_GeomAlgoAPI PROPERTIES DEBUG_OUTPUT_NAME _GeomAlgoAPI_d)
186 INSTALL(TARGETS _GeomAlgoAPI DESTINATION ${SHAPER_INSTALL_SWIG})
187 INSTALL(TARGETS GeomAlgoAPI DESTINATION ${SHAPER_INSTALL_BIN})
188 INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION ${SHAPER_INSTALL_SWIG})