1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 FIND_PACKAGE(SWIG REQUIRED)
5 INCLUDE(${SWIG_USE_FILE})
6 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
23 GeomAPI_ShapeExplorer.h
28 GeomAPI_IPresentable.h
30 GeomAPI_DataMapOfShapeMapOfShapes.h
31 GeomAPI_DataMapOfShapeShape.h
56 GeomAPI_ShapeExplorer.cpp
59 GeomAPI_PlanarEdges.cpp
62 GeomAPI_DataMapOfShapeMapOfShapes.cpp
63 GeomAPI_DataMapOfShapeShape.cpp
65 GeomAPI_ICustomPrs.cpp
69 GeomAPI_IPresentable.cpp
83 ADD_DEFINITIONS(-DGEOMAPI_EXPORTS ${CAS_DEFINITIONS})
84 ADD_LIBRARY(GeomAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
86 SET(CMAKE_SWIG_FLAGS -threads -Wall)
88 SET_SOURCE_FILES_PROPERTIES(GeomAPI.i PROPERTIES CPLUSPLUS ON)
89 SET_SOURCE_FILES_PROPERTIES(GeomAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
95 TARGET_LINK_LIBRARIES(GeomAPI ${PROJECT_LIBRARIES})
98 ${CMAKE_CURRENT_BINARY_DIR}/GeomAPI.py
101 SET(SWIG_LINK_LIBRARIES
106 SWIG_ADD_MODULE(GeomAPI python GeomAPI.i ${PROJECT_HEADERS})
107 SWIG_LINK_LIBRARIES(GeomAPI ${SWIG_LINK_LIBRARIES})
110 SET_TARGET_PROPERTIES(_GeomAPI PROPERTIES DEBUG_OUTPUT_NAME _GeomAPI_d)
113 INSTALL(TARGETS _GeomAPI DESTINATION ${SHAPER_INSTALL_SWIG})
114 INSTALL(TARGETS GeomAPI DESTINATION ${SHAPER_INSTALL_BIN})
115 INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION ${SHAPER_INSTALL_SWIG})