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})
27 GeomAPI_IPresentable.h
29 GeomAPI_DataMapOfShapeShape.h
50 GeomAPI_PlanarEdges.cpp
53 GeomAPI_DataMapOfShapeShape.cpp
65 ADD_DEFINITIONS(-DGEOMAPI_EXPORTS ${CAS_DEFINITIONS})
66 ADD_LIBRARY(GeomAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
68 SET(CMAKE_SWIG_FLAGS -threads -Wall)
70 SET_SOURCE_FILES_PROPERTIES(GeomAPI.i PROPERTIES CPLUSPLUS ON)
71 SET_SOURCE_FILES_PROPERTIES(GeomAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
77 TARGET_LINK_LIBRARIES(GeomAPI ${PROJECT_LIBRARIES})
80 ${CMAKE_CURRENT_BINARY_DIR}/GeomAPI.py
83 SET(SWIG_LINK_LIBRARIES
88 SWIG_ADD_MODULE(GeomAPI python GeomAPI.i ${PROJECT_HEADERS})
89 SWIG_LINK_LIBRARIES(GeomAPI ${SWIG_LINK_LIBRARIES})
92 SET_TARGET_PROPERTIES(_GeomAPI PROPERTIES DEBUG_OUTPUT_NAME _GeomAPI_d)
95 INSTALL(TARGETS _GeomAPI DESTINATION swig)
96 INSTALL(TARGETS GeomAPI DESTINATION bin)
97 INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION swig)