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