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>
30 CollectionAPI_Group.cpp
31 CollectionAPI_Field.cpp
40 ${PROJECT_SOURCE_DIR}/src/Events
41 ${PROJECT_SOURCE_DIR}/src/ModelAPI
42 ${PROJECT_SOURCE_DIR}/src/ModelHighAPI
45 # Plugin headers dependency
47 ${PROJECT_SOURCE_DIR}/src/GeomAPI
48 ${PROJECT_SOURCE_DIR}/src/GeomAlgoAPI
49 ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
50 ${PROJECT_SOURCE_DIR}/src/CollectionPlugin
53 ADD_DEFINITIONS(-DCOLLECTIONAPI_EXPORTS)
54 ADD_LIBRARY(CollectionAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
55 TARGET_LINK_LIBRARIES(CollectionAPI ${PROJECT_LIBRARIES})
61 SET_SOURCE_FILES_PROPERTIES(CollectionAPI.i PROPERTIES CPLUSPLUS ON)
62 SET_SOURCE_FILES_PROPERTIES(CollectionAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
64 SET(SWIG_LINK_LIBRARIES
71 SET(SWIG_MODULE_CollectionAPI_EXTRA_DEPS ${SWIG_MODULE_CollectionAPI_EXTRA_DEPS}
72 ${PROJECT_SOURCE_DIR}/src/ModelHighAPI/ModelHighAPI.i
77 IF(${CMAKE_VERSION} VERSION_GREATER "3.8.0")
78 SWIG_ADD_LIBRARY(CollectionAPI LANGUAGE python SOURCES CollectionAPI.i ${PROJECT_HEADERS})
80 SWIG_ADD_MODULE(CollectionAPI python CollectionAPI.i ${PROJECT_HEADERS})
82 SWIG_LINK_LIBRARIES(CollectionAPI ${SWIG_LINK_LIBRARIES})
85 SET_TARGET_PROPERTIES(_CollectionAPI PROPERTIES DEBUG_OUTPUT_NAME _CollectionAPI_d)
88 INSTALL(TARGETS _CollectionAPI DESTINATION ${SHAPER_INSTALL_SWIG})
89 INSTALL(TARGETS CollectionAPI DESTINATION ${SHAPER_INSTALL_BIN})
90 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/CollectionAPI.py DESTINATION ${SHAPER_INSTALL_SWIG})