]> SALOME platform Git repositories - modules/shaper.git/blob - src/GeomAlgoAPI/CMakeLists.txt
Salome HOME
Add "Torus" primitive and "Cone" primitive.
[modules/shaper.git] / src / GeomAlgoAPI / CMakeLists.txt
1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 FIND_PACKAGE(SWIG REQUIRED)
4
5 INCLUDE(${SWIG_USE_FILE})
6 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
7
8 SET(PROJECT_HEADERS
9     GeomAlgoAPI.h
10     GeomAlgoAPI_Tools.h
11     GeomAlgoAPI_CompoundBuilder.h
12     GeomAlgoAPI_FaceBuilder.h
13     GeomAlgoAPI_EdgeBuilder.h
14     GeomAlgoAPI_PointBuilder.h
15     GeomAlgoAPI_SketchBuilder.h
16     GeomAlgoAPI_Prism.h
17     GeomAlgoAPI_Revolution.h
18     GeomAlgoAPI_Boolean.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
38     GeomAlgoAPI_Pipe.h
39     GeomAlgoAPI_WireBuilder.h
40     GeomAlgoAPI_Sewing.h
41     GeomAlgoAPI_ShapeBuilder.h
42     GeomAlgoAPI_ShapeAPI.h
43     GeomAlgoAPI_Exception.h
44     GeomAlgoAPI_Box.h
45     GeomAlgoAPI_Cone.h
46     GeomAlgoAPI_Cylinder.h
47     GeomAlgoAPI_Sphere.h
48     GeomAlgoAPI_Torus.h
49     GeomAlgoAPI_XAOExport.h
50     GeomAlgoAPI_XAOImport.h
51     GeomAlgoAPI_Copy.h
52     GeomAlgoAPI_ConeSegment.h
53     GeomAlgoAPI_Symmetry.h
54     GeomAlgoAPI_Scale.h
55 )
56
57 SET(PROJECT_SOURCES
58     GeomAlgoAPI_Tools.cpp
59     GeomAlgoAPI_CompoundBuilder.cpp
60     GeomAlgoAPI_FaceBuilder.cpp
61     GeomAlgoAPI_EdgeBuilder.cpp
62     GeomAlgoAPI_PointBuilder.cpp
63     GeomAlgoAPI_SketchBuilder.cpp
64     GeomAlgoAPI_Prism.cpp
65     GeomAlgoAPI_Revolution.cpp
66     GeomAlgoAPI_Boolean.cpp
67     GeomAlgoAPI_Rotation.cpp
68     GeomAlgoAPI_Translation.cpp
69     GeomAlgoAPI_MakeShape.cpp
70     GeomAlgoAPI_MakeShapeCustom.cpp
71     GeomAlgoAPI_MakeShapeList.cpp
72     GeomAlgoAPI_MakeSweep.cpp
73     GeomAlgoAPI_DFLoader.cpp
74     GeomAlgoAPI_Placement.cpp
75     GeomAlgoAPI_BREPImport.cpp
76     GeomAlgoAPI_STEPImport.cpp
77     GeomAlgoAPI_IGESImport.cpp
78     GeomAlgoAPI_BREPExport.cpp
79     GeomAlgoAPI_STEPExport.cpp
80     GeomAlgoAPI_IGESExport.cpp
81     GeomAlgoAPI_Transform.cpp
82     GeomAlgoAPI_ShapeTools.cpp
83     GeomAlgoAPI_Partition.cpp
84     GeomAlgoAPI_PaveFiller.cpp
85     GeomAlgoAPI_Intersection.cpp
86     GeomAlgoAPI_Pipe.cpp
87     GeomAlgoAPI_WireBuilder.cpp
88     GeomAlgoAPI_Sewing.cpp
89     GeomAlgoAPI_ShapeBuilder.cpp
90     GeomAlgoAPI_ShapeAPI.cpp
91     GeomAlgoAPI_Exception.cpp
92     GeomAlgoAPI_Box.cpp
93     GeomAlgoAPI_Cone.cpp
94     GeomAlgoAPI_Cylinder.cpp
95     GeomAlgoAPI_Sphere.cpp
96     GeomAlgoAPI_Torus.cpp
97     GeomAlgoAPI_XAOExport.cpp
98     GeomAlgoAPI_XAOImport.cpp
99     GeomAlgoAPI_Copy.cpp
100     GeomAlgoAPI_ConeSegment.cpp
101     GeomAlgoAPI_Symmetry.cpp
102     GeomAlgoAPI_Scale.cpp
103 )
104
105 SET(PROJECT_LIBRARIES
106     GeomAPI
107     GeomAlgoImpl
108     ModelAPI
109     XAOShaper
110     ${CAS_OCAF}
111     ${CAS_SHAPE}
112     ${CAS_TKBO}
113     ${CAS_TKBool}
114     ${CAS_TKBRep}
115     ${CAS_TKCAF}
116     ${CAS_TKCAF}
117     ${CAS_TKLCAF}
118     ${CAS_TKPrim}
119     ${CAS_TKSTEP}
120     ${CAS_TKSTEPBase}
121     ${CAS_TKIGES}
122     ${CAS_TKTopAlgo}
123     ${CAS_TKXSBase}
124     ${CAS_TKOffset}
125     ${CAS_TKShHealing}
126 )
127
128 ADD_DEFINITIONS(-DGEOMALGOAPI_EXPORTS ${CAS_DEFINITIONS})
129 ADD_LIBRARY(GeomAlgoAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
130
131 SET(CMAKE_SWIG_FLAGS "-Wall")
132
133 SET_SOURCE_FILES_PROPERTIES(GeomAlgoAPI.i PROPERTIES CPLUSPLUS ON)
134 SET_SOURCE_FILES_PROPERTIES(GeomAlgoAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
135
136 INCLUDE_DIRECTORIES(
137   ../GeomAPI
138   ../GeomAlgoImpl
139   ../ModelAPI
140   ../XAO
141   ${CAS_INCLUDE_DIRS}
142 )
143
144 TARGET_LINK_LIBRARIES(GeomAlgoAPI ${PROJECT_LIBRARIES})
145
146 SET(SWIG_SCRIPTS
147   ${CMAKE_CURRENT_BINARY_DIR}/GeomAlgoAPI.py
148 )
149
150 SET(SWIG_LINK_LIBRARIES
151   GeomAPI
152   GeomAlgoAPI
153   GeomAlgoImpl
154   ${PYTHON_LIBRARIES}
155 )
156
157 SWIG_ADD_MODULE(GeomAlgoAPI python GeomAlgoAPI.i ${PROJECT_HEADERS})
158 SWIG_LINK_LIBRARIES(GeomAlgoAPI ${SWIG_LINK_LIBRARIES})
159
160 IF(WIN32)
161   SET_TARGET_PROPERTIES(_GeomAlgoAPI PROPERTIES DEBUG_OUTPUT_NAME _GeomAlgoAPI_d)
162 ENDIF(WIN32)
163
164 INSTALL(TARGETS _GeomAlgoAPI DESTINATION ${SHAPER_INSTALL_SWIG})
165 INSTALL(TARGETS GeomAlgoAPI DESTINATION ${SHAPER_INSTALL_BIN})
166 INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION ${SHAPER_INSTALL_SWIG})
167