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})
11 GeomAlgoAPI_CompoundBuilder.h
12 GeomAlgoAPI_FaceBuilder.h
13 GeomAlgoAPI_EdgeBuilder.h
14 GeomAlgoAPI_PointBuilder.h
15 GeomAlgoAPI_SketchBuilder.h
17 GeomAlgoAPI_Revolution.h
19 GeomAlgoAPI_Rotation.h
20 GeomAlgoAPI_Translation.h
21 GeomAlgoAPI_MakeShape.h
22 GeomAlgoAPI_MakeShapeCustom.h
23 GeomAlgoAPI_MakeShapeList.h
24 GeomAlgoAPI_MakeSweep.h
25 GeomAlgoAPI_DFLoader.h
26 GeomAlgoAPI_Placement.h
27 GeomAlgoAPI_BREPImport.h
28 GeomAlgoAPI_STEPImport.h
29 GeomAlgoAPI_IGESImport.h
30 GeomAlgoAPI_BREPExport.h
31 GeomAlgoAPI_STEPExport.h
32 GeomAlgoAPI_IGESExport.h
33 GeomAlgoAPI_Transform.h
34 GeomAlgoAPI_ShapeTools.h
35 GeomAlgoAPI_Partition.h
36 GeomAlgoAPI_PaveFiller.h
37 GeomAlgoAPI_Intersection.h
39 GeomAlgoAPI_WireBuilder.h
45 GeomAlgoAPI_CompoundBuilder.cpp
46 GeomAlgoAPI_FaceBuilder.cpp
47 GeomAlgoAPI_EdgeBuilder.cpp
48 GeomAlgoAPI_PointBuilder.cpp
49 GeomAlgoAPI_SketchBuilder.cpp
51 GeomAlgoAPI_Revolution.cpp
52 GeomAlgoAPI_Boolean.cpp
53 GeomAlgoAPI_Rotation.cpp
54 GeomAlgoAPI_Translation.cpp
55 GeomAlgoAPI_MakeShape.cpp
56 GeomAlgoAPI_MakeShapeCustom.cpp
57 GeomAlgoAPI_MakeShapeList.cpp
58 GeomAlgoAPI_MakeSweep.cpp
59 GeomAlgoAPI_DFLoader.cpp
60 GeomAlgoAPI_Placement.cpp
61 GeomAlgoAPI_BREPImport.cpp
62 GeomAlgoAPI_STEPImport.cpp
63 GeomAlgoAPI_IGESImport.cpp
64 GeomAlgoAPI_BREPExport.cpp
65 GeomAlgoAPI_STEPExport.cpp
66 GeomAlgoAPI_IGESExport.cpp
67 GeomAlgoAPI_Transform.cpp
68 GeomAlgoAPI_ShapeTools.cpp
69 GeomAlgoAPI_Partition.cpp
70 GeomAlgoAPI_PaveFiller.cpp
71 GeomAlgoAPI_Intersection.cpp
73 GeomAlgoAPI_WireBuilder.cpp
74 GeomAlgoAPI_Sewing.cpp
98 ADD_DEFINITIONS(-DGEOMALGOAPI_EXPORTS ${CAS_DEFINITIONS})
99 ADD_LIBRARY(GeomAlgoAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
101 SET(CMAKE_SWIG_FLAGS "-Wall")
103 SET_SOURCE_FILES_PROPERTIES(GeomAlgoAPI.i PROPERTIES CPLUSPLUS ON)
104 SET_SOURCE_FILES_PROPERTIES(GeomAlgoAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
113 TARGET_LINK_LIBRARIES(GeomAlgoAPI ${PROJECT_LIBRARIES})
116 ${CMAKE_CURRENT_BINARY_DIR}/GeomAlgoAPI.py
119 SET(SWIG_LINK_LIBRARIES
126 SWIG_ADD_MODULE(GeomAlgoAPI python GeomAlgoAPI.i ${PROJECT_HEADERS})
127 SWIG_LINK_LIBRARIES(GeomAlgoAPI ${SWIG_LINK_LIBRARIES})
130 SET_TARGET_PROPERTIES(_GeomAlgoAPI PROPERTIES DEBUG_OUTPUT_NAME _GeomAlgoAPI_d)
133 INSTALL(TARGETS _GeomAlgoAPI DESTINATION ${SHAPER_INSTALL_SWIG})
134 INSTALL(TARGETS GeomAlgoAPI DESTINATION ${SHAPER_INSTALL_BIN})
135 INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION ${SHAPER_INSTALL_SWIG})