1 # Copyright (C) 2014-2019 CEA/DEN, EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 FeaturesAPI_BooleanCut.h
25 FeaturesAPI_BooleanFuse.h
26 FeaturesAPI_BooleanCommon.h
27 FeaturesAPI_BooleanSmash.h
28 FeaturesAPI_BooleanFill.h
29 FeaturesAPI_Extrusion.h
30 FeaturesAPI_ExtrusionBoolean.h
32 FeaturesAPI_Intersection.h
33 FeaturesAPI_Measurement.h
34 FeaturesAPI_MultiRotation.h
35 FeaturesAPI_MultiTranslation.h
36 FeaturesAPI_Partition.h
38 FeaturesAPI_Placement.h
40 FeaturesAPI_RemoveResults.h
41 FeaturesAPI_RemoveSubShapes.h
42 FeaturesAPI_Revolution.h
43 FeaturesAPI_RevolutionBoolean.h
44 FeaturesAPI_Rotation.h
46 FeaturesAPI_Symmetry.h
47 FeaturesAPI_Translation.h
49 FeaturesAPI_FusionFaces.h
53 FeaturesAPI_BooleanCut.cpp
54 FeaturesAPI_BooleanFuse.cpp
55 FeaturesAPI_BooleanCommon.cpp
56 FeaturesAPI_BooleanSmash.cpp
57 FeaturesAPI_BooleanFill.cpp
58 FeaturesAPI_Extrusion.cpp
59 FeaturesAPI_ExtrusionBoolean.cpp
60 FeaturesAPI_Fillet.cpp
61 FeaturesAPI_Intersection.cpp
62 FeaturesAPI_Measurement.cpp
63 FeaturesAPI_MultiRotation.cpp
64 FeaturesAPI_MultiTranslation.cpp
65 FeaturesAPI_Partition.cpp
67 FeaturesAPI_Placement.cpp
68 FeaturesAPI_Recover.cpp
69 FeaturesAPI_RemoveResults.cpp
70 FeaturesAPI_RemoveSubShapes.cpp
71 FeaturesAPI_Revolution.cpp
72 FeaturesAPI_RevolutionBoolean.cpp
73 FeaturesAPI_Rotation.cpp
75 FeaturesAPI_Symmetry.cpp
76 FeaturesAPI_Translation.cpp
78 FeaturesAPI_FusionFaces.cpp
87 ${PROJECT_SOURCE_DIR}/src/Events
88 ${PROJECT_SOURCE_DIR}/src/ModelAPI
89 ${PROJECT_SOURCE_DIR}/src/ModelHighAPI
92 # Plugin headers dependency
94 ${PROJECT_SOURCE_DIR}/src/GeomAPI
95 ${PROJECT_SOURCE_DIR}/src/GeomAlgoAPI
96 ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
97 ${PROJECT_SOURCE_DIR}/src/FeaturesPlugin
100 ADD_DEFINITIONS(-DFEATURESAPI_EXPORTS)
101 ADD_LIBRARY(FeaturesAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
102 TARGET_LINK_LIBRARIES(FeaturesAPI ${PROJECT_LIBRARIES})
108 SET_SOURCE_FILES_PROPERTIES(FeaturesAPI.i PROPERTIES CPLUSPLUS ON)
109 SET_SOURCE_FILES_PROPERTIES(FeaturesAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
111 SET(SWIG_LINK_LIBRARIES
117 SET(CMAKE_SWIG_FLAGS -threads -w325,321,302,362,322,383,403)
119 SET(SWIG_MODULE_FeaturesAPI_EXTRA_DEPS ${SWIG_MODULE_FeaturesAPI_EXTRA_DEPS}
120 ${PROJECT_SOURCE_DIR}/src/ModelHighAPI/ModelHighAPI.i
125 IF(${CMAKE_VERSION} VERSION_GREATER "3.8.0")
126 SWIG_ADD_LIBRARY(FeaturesAPI LANGUAGE python SOURCES FeaturesAPI.i ${PROJECT_HEADERS})
128 SWIG_ADD_MODULE(FeaturesAPI python FeaturesAPI.i ${PROJECT_HEADERS})
130 SWIG_LINK_LIBRARIES(FeaturesAPI ${SWIG_LINK_LIBRARIES})
133 SET_TARGET_PROPERTIES(_FeaturesAPI PROPERTIES DEBUG_OUTPUT_NAME _FeaturesAPI_d)
136 INSTALL(TARGETS _FeaturesAPI DESTINATION ${SHAPER_INSTALL_SWIG})
137 INSTALL(TARGETS FeaturesAPI DESTINATION ${SHAPER_INSTALL_BIN})
138 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/FeaturesAPI.py DESTINATION ${SHAPER_INSTALL_SWIG})