1 ## Copyright (C) 2014-2017 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
18 ## email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
26 FeaturesAPI_Extrusion.h
27 FeaturesAPI_ExtrusionBoolean.h
29 FeaturesAPI_Intersection.h
30 FeaturesAPI_MultiRotation.h
31 FeaturesAPI_MultiTranslation.h
32 FeaturesAPI_Partition.h
34 FeaturesAPI_Placement.h
36 FeaturesAPI_RemoveSubShapes.h
37 FeaturesAPI_Revolution.h
38 FeaturesAPI_RevolutionBoolean.h
39 FeaturesAPI_Rotation.h
41 FeaturesAPI_Symmetry.h
42 FeaturesAPI_Translation.h
47 FeaturesAPI_Boolean.cpp
48 FeaturesAPI_Extrusion.cpp
49 FeaturesAPI_ExtrusionBoolean.cpp
50 FeaturesAPI_Fillet.cpp
51 FeaturesAPI_Intersection.cpp
52 FeaturesAPI_MultiRotation.cpp
53 FeaturesAPI_MultiTranslation.cpp
54 FeaturesAPI_Partition.cpp
56 FeaturesAPI_Placement.cpp
57 FeaturesAPI_Recover.cpp
58 FeaturesAPI_RemoveSubShapes.cpp
59 FeaturesAPI_Revolution.cpp
60 FeaturesAPI_RevolutionBoolean.cpp
61 FeaturesAPI_Rotation.cpp
63 FeaturesAPI_Symmetry.cpp
64 FeaturesAPI_Translation.cpp
74 ${PROJECT_SOURCE_DIR}/src/Events
75 ${PROJECT_SOURCE_DIR}/src/ModelAPI
76 ${PROJECT_SOURCE_DIR}/src/ModelHighAPI
79 # Plugin headers dependency
81 ${PROJECT_SOURCE_DIR}/src/GeomAPI
82 ${PROJECT_SOURCE_DIR}/src/GeomAlgoAPI
83 ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
84 ${PROJECT_SOURCE_DIR}/src/FeaturesPlugin
87 ADD_DEFINITIONS(-DFEATURESAPI_EXPORTS)
88 ADD_LIBRARY(FeaturesAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
89 TARGET_LINK_LIBRARIES(FeaturesAPI ${PROJECT_LIBRARIES})
95 SET_SOURCE_FILES_PROPERTIES(FeaturesAPI.i PROPERTIES CPLUSPLUS ON)
96 SET_SOURCE_FILES_PROPERTIES(FeaturesAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
98 SET(SWIG_LINK_LIBRARIES
105 SET(SWIG_MODULE_FeaturesAPI_EXTRA_DEPS ${SWIG_MODULE_FeaturesAPI_EXTRA_DEPS}
106 ${PROJECT_SOURCE_DIR}/src/ModelHighAPI/ModelHighAPI.i
111 SWIG_ADD_MODULE(FeaturesAPI python FeaturesAPI.i ${PROJECT_HEADERS})
112 SWIG_LINK_LIBRARIES(FeaturesAPI ${SWIG_LINK_LIBRARIES})
115 SET_TARGET_PROPERTIES(_FeaturesAPI PROPERTIES DEBUG_OUTPUT_NAME _FeaturesAPI_d)
118 INSTALL(TARGETS _FeaturesAPI DESTINATION ${SHAPER_INSTALL_SWIG})
119 INSTALL(TARGETS FeaturesAPI DESTINATION ${SHAPER_INSTALL_BIN})
120 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/FeaturesAPI.py DESTINATION ${SHAPER_INSTALL_SWIG})