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>
21 FIND_PACKAGE(SWIG REQUIRED)
23 INCLUDE(${SWIG_USE_FILE})
24 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
41 GeomAPI_ShapeExplorer.h
42 GeomAPI_ShapeIterator.h
47 GeomAPI_IPresentable.h
49 GeomAPI_DataMapOfShapeMapOfShapes.h
50 GeomAPI_DataMapOfShapeShape.h
79 GeomAPI_ShapeExplorer.cpp
80 GeomAPI_ShapeIterator.cpp
83 GeomAPI_PlanarEdges.cpp
86 GeomAPI_DataMapOfShapeMapOfShapes.cpp
87 GeomAPI_DataMapOfShapeShape.cpp
89 GeomAPI_ICustomPrs.cpp
93 GeomAPI_IPresentable.cpp
103 SET(PROJECT_LIBRARIES
112 ADD_DEFINITIONS(-DGEOMAPI_EXPORTS ${CAS_DEFINITIONS})
113 ADD_LIBRARY(GeomAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
115 SET(CMAKE_SWIG_FLAGS -threads -Wall)
117 SET_SOURCE_FILES_PROPERTIES(GeomAPI.i PROPERTIES CPLUSPLUS ON)
118 SET_SOURCE_FILES_PROPERTIES(GeomAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
124 TARGET_LINK_LIBRARIES(GeomAPI ${PROJECT_LIBRARIES})
127 ${CMAKE_CURRENT_BINARY_DIR}/GeomAPI.py
130 SET(SWIG_LINK_LIBRARIES
135 SWIG_ADD_MODULE(GeomAPI python GeomAPI.i ${PROJECT_HEADERS})
136 SWIG_LINK_LIBRARIES(GeomAPI ${SWIG_LINK_LIBRARIES})
139 SET_TARGET_PROPERTIES(_GeomAPI PROPERTIES DEBUG_OUTPUT_NAME _GeomAPI_d)
142 INSTALL(TARGETS _GeomAPI DESTINATION ${SHAPER_INSTALL_SWIG})
143 INSTALL(TARGETS GeomAPI DESTINATION ${SHAPER_INSTALL_BIN})
144 INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION ${SHAPER_INSTALL_SWIG})