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