1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 FIND_PACKAGE(SWIG REQUIRED)
5 INCLUDE(${SWIG_USE_FILE})
6 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
12 GeomAlgoAPI_CompoundBuilder.h
13 GeomAlgoAPI_FaceBuilder.h
14 GeomAlgoAPI_EdgeBuilder.h
15 GeomAlgoAPI_PointBuilder.h
16 GeomAlgoAPI_SketchBuilder.h
18 GeomAlgoAPI_Revolution.h
20 GeomAlgoAPI_Rotation.h
21 GeomAlgoAPI_Translation.h
22 GeomAlgoAPI_MakeShape.h
23 GeomAlgoAPI_MakeShapeCustom.h
24 GeomAlgoAPI_MakeShapeList.h
25 GeomAlgoAPI_MakeSweep.h
26 GeomAlgoAPI_DFLoader.h
27 GeomAlgoAPI_Placement.h
28 GeomAlgoAPI_BREPImport.h
29 GeomAlgoAPI_STEPImport.h
30 GeomAlgoAPI_IGESImport.h
31 GeomAlgoAPI_BREPExport.h
32 GeomAlgoAPI_STEPExport.h
33 GeomAlgoAPI_IGESExport.h
34 GeomAlgoAPI_Transform.h
35 GeomAlgoAPI_ShapeTools.h
36 GeomAlgoAPI_Partition.h
37 GeomAlgoAPI_PaveFiller.h
38 GeomAlgoAPI_Intersection.h
40 GeomAlgoAPI_WireBuilder.h
42 GeomAlgoAPI_ShapeBuilder.h
43 GeomAlgoAPI_ShapeAPI.h
44 GeomAlgoAPI_Exception.h
46 GeomAlgoAPI_XAOExport.h
47 GeomAlgoAPI_XAOImport.h
53 GeomAlgoAPI_CompoundBuilder.cpp
54 GeomAlgoAPI_FaceBuilder.cpp
55 GeomAlgoAPI_EdgeBuilder.cpp
56 GeomAlgoAPI_PointBuilder.cpp
57 GeomAlgoAPI_SketchBuilder.cpp
59 GeomAlgoAPI_Revolution.cpp
60 GeomAlgoAPI_Boolean.cpp
61 GeomAlgoAPI_Rotation.cpp
62 GeomAlgoAPI_Translation.cpp
63 GeomAlgoAPI_MakeShape.cpp
64 GeomAlgoAPI_MakeShapeCustom.cpp
65 GeomAlgoAPI_MakeShapeList.cpp
66 GeomAlgoAPI_MakeSweep.cpp
67 GeomAlgoAPI_DFLoader.cpp
68 GeomAlgoAPI_Placement.cpp
69 GeomAlgoAPI_BREPImport.cpp
70 GeomAlgoAPI_STEPImport.cpp
71 GeomAlgoAPI_IGESImport.cpp
72 GeomAlgoAPI_BREPExport.cpp
73 GeomAlgoAPI_STEPExport.cpp
74 GeomAlgoAPI_IGESExport.cpp
75 GeomAlgoAPI_Transform.cpp
76 GeomAlgoAPI_ShapeTools.cpp
77 GeomAlgoAPI_Partition.cpp
78 GeomAlgoAPI_PaveFiller.cpp
79 GeomAlgoAPI_Intersection.cpp
81 GeomAlgoAPI_WireBuilder.cpp
82 GeomAlgoAPI_Sewing.cpp
83 GeomAlgoAPI_ShapeBuilder.cpp
84 GeomAlgoAPI_ShapeAPI.cpp
85 GeomAlgoAPI_Exception.cpp
87 GeomAlgoAPI_XAOExport.cpp
88 GeomAlgoAPI_XAOImport.cpp
115 ADD_DEFINITIONS(-DGEOMALGOAPI_EXPORTS ${CAS_DEFINITIONS})
116 ADD_LIBRARY(GeomAlgoAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
118 SET(CMAKE_SWIG_FLAGS "-Wall")
120 SET_SOURCE_FILES_PROPERTIES(GeomAlgoAPI.i PROPERTIES CPLUSPLUS ON)
121 SET_SOURCE_FILES_PROPERTIES(GeomAlgoAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
131 TARGET_LINK_LIBRARIES(GeomAlgoAPI ${PROJECT_LIBRARIES})
134 ${CMAKE_CURRENT_BINARY_DIR}/GeomAlgoAPI.py
137 SET(SWIG_LINK_LIBRARIES
144 SWIG_ADD_MODULE(GeomAlgoAPI python GeomAlgoAPI.i ${PROJECT_HEADERS})
145 SWIG_LINK_LIBRARIES(GeomAlgoAPI ${SWIG_LINK_LIBRARIES})
148 SET_TARGET_PROPERTIES(_GeomAlgoAPI PROPERTIES DEBUG_OUTPUT_NAME _GeomAlgoAPI_d)
151 INSTALL(TARGETS _GeomAlgoAPI DESTINATION ${SHAPER_INSTALL_SWIG})
152 INSTALL(TARGETS GeomAlgoAPI DESTINATION ${SHAPER_INSTALL_BIN})
153 INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION ${SHAPER_INSTALL_SWIG})
155 ADD_UNIT_TESTS(TestAPI_Box.py
156 TestAPI_Translation.py)