1 FIND_PACKAGE(SWIG REQUIRED)
3 INCLUDE(${SWIG_USE_FILE})
4 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
8 GeomAlgoAPI_CompoundBuilder.h
9 GeomAlgoAPI_FaceBuilder.h
10 GeomAlgoAPI_EdgeBuilder.h
11 GeomAlgoAPI_PointBuilder.h
12 GeomAlgoAPI_SketchBuilder.h
13 GeomAlgoAPI_Extrusion.h
15 GeomAlgoAPI_MakeShape.h
16 GeomAlgoAPI_DFLoader.h
20 GeomAlgoAPI_CompoundBuilder.cpp
21 GeomAlgoAPI_FaceBuilder.cpp
22 GeomAlgoAPI_EdgeBuilder.cpp
23 GeomAlgoAPI_PointBuilder.cpp
24 GeomAlgoAPI_SketchBuilder.cpp
25 GeomAlgoAPI_Extrusion.cpp
26 GeomAlgoAPI_Boolean.cpp
27 GeomAlgoAPI_MakeShape.cpp
28 GeomAlgoAPI_DFLoader.cpp
41 ADD_DEFINITIONS(-DGEOMALGOAPI_EXPORTS ${CAS_DEFINITIONS})
42 ADD_LIBRARY(GeomAlgoAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
44 SET(CMAKE_SWIG_FLAGS "")
46 SET_SOURCE_FILES_PROPERTIES(GeomAlgoAPI.i PROPERTIES CPLUSPLUS ON)
47 SET_SOURCE_FILES_PROPERTIES(GeomAlgoAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
55 TARGET_LINK_LIBRARIES(GeomAlgoAPI ${PROJECT_LIBRARIES})
58 ${CMAKE_CURRENT_BINARY_DIR}/GeomAlgoAPI.py
61 SET(SWIG_LINK_LIBRARIES
67 SWIG_ADD_MODULE(GeomAlgoAPI python GeomAlgoAPI.i ${PROJECT_HEADERS})
68 SWIG_LINK_LIBRARIES(GeomAlgoAPI ${SWIG_LINK_LIBRARIES})
71 SET_TARGET_PROPERTIES(_GeomAlgoAPI PROPERTIES DEBUG_OUTPUT_NAME _GeomAlgoAPI_d)
74 INSTALL(TARGETS _GeomAlgoAPI DESTINATION swig)
75 INSTALL(TARGETS GeomAlgoAPI DESTINATION bin)
76 INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION swig)