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})
10 GeomAlgoAPI_CompoundBuilder.h
11 GeomAlgoAPI_FaceBuilder.h
12 GeomAlgoAPI_EdgeBuilder.h
13 GeomAlgoAPI_PointBuilder.h
14 GeomAlgoAPI_SketchBuilder.h
15 GeomAlgoAPI_Extrusion.h
17 GeomAlgoAPI_MakeShape.h
18 GeomAlgoAPI_DFLoader.h
19 GeomAlgoAPI_Placement.h
23 GeomAlgoAPI_CompoundBuilder.cpp
24 GeomAlgoAPI_FaceBuilder.cpp
25 GeomAlgoAPI_EdgeBuilder.cpp
26 GeomAlgoAPI_PointBuilder.cpp
27 GeomAlgoAPI_SketchBuilder.cpp
28 GeomAlgoAPI_Extrusion.cpp
29 GeomAlgoAPI_Boolean.cpp
30 GeomAlgoAPI_MakeShape.cpp
31 GeomAlgoAPI_DFLoader.cpp
32 GeomAlgoAPI_Placement.cpp
45 ADD_DEFINITIONS(-DGEOMALGOAPI_EXPORTS ${CAS_DEFINITIONS})
46 ADD_LIBRARY(GeomAlgoAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
48 SET(CMAKE_SWIG_FLAGS "")
50 SET_SOURCE_FILES_PROPERTIES(GeomAlgoAPI.i PROPERTIES CPLUSPLUS ON)
51 SET_SOURCE_FILES_PROPERTIES(GeomAlgoAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
59 TARGET_LINK_LIBRARIES(GeomAlgoAPI ${PROJECT_LIBRARIES})
62 ${CMAKE_CURRENT_BINARY_DIR}/GeomAlgoAPI.py
65 SET(SWIG_LINK_LIBRARIES
71 SWIG_ADD_MODULE(GeomAlgoAPI python GeomAlgoAPI.i ${PROJECT_HEADERS})
72 SWIG_LINK_LIBRARIES(GeomAlgoAPI ${SWIG_LINK_LIBRARIES})
75 SET_TARGET_PROPERTIES(_GeomAlgoAPI PROPERTIES DEBUG_OUTPUT_NAME _GeomAlgoAPI_d)
78 INSTALL(TARGETS _GeomAlgoAPI DESTINATION swig)
79 INSTALL(TARGETS GeomAlgoAPI DESTINATION bin)
80 INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION swig)