1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
10 SketchAPI_IntersectionPoint.h
13 SketchAPI_MacroCircle.h
16 SketchAPI_SketchEntity.h
18 SketchAPI_Projection.h
21 SketchAPI_Translation.h
27 SketchAPI_Constraint.cpp
28 SketchAPI_IntersectionPoint.cpp
30 SketchAPI_MacroArc.cpp
31 SketchAPI_MacroCircle.cpp
34 SketchAPI_SketchEntity.cpp
36 SketchAPI_Projection.cpp
37 SketchAPI_Rectangle.cpp
38 SketchAPI_Rotation.cpp
39 SketchAPI_Translation.cpp
48 ${PROJECT_SOURCE_DIR}/src/Events
49 ${PROJECT_SOURCE_DIR}/src/GeomAPI
50 ${PROJECT_SOURCE_DIR}/src/ModelAPI
51 ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
52 ${PROJECT_SOURCE_DIR}/src/ModelHighAPI
53 ${PROJECT_SOURCE_DIR}/src/SketcherPrs
56 # Plugin headers dependency
58 # TODO(spo): modify ConstructionPlugin headers to remove dependency on GeomAPI headers
59 ${PROJECT_SOURCE_DIR}/src/Config
60 ${PROJECT_SOURCE_DIR}/src/GeomAPI
61 ${PROJECT_SOURCE_DIR}/src/SketchPlugin
64 #TODO(spo): is ${CAS_DEFINITIONS} necessary?
65 ADD_DEFINITIONS(-DSKETCHAPI_EXPORTS ${CAS_DEFINITIONS})
66 ADD_LIBRARY(SketchAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
67 TARGET_LINK_LIBRARIES(SketchAPI ${PROJECT_LIBRARIES})
73 SET_SOURCE_FILES_PROPERTIES(SketchAPI.i PROPERTIES CPLUSPLUS ON)
74 SET_SOURCE_FILES_PROPERTIES(SketchAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
76 #TODO(spo): is ModelAPI necessary or it could be received by INTERFACE_ (may require modern CMake)?
77 SET(SWIG_LINK_LIBRARIES
84 SET(SWIG_MODULE_SketchAPI_EXTRA_DEPS ${SWIG_MODULE_SketchAPI_EXTRA_DEPS}
85 ${PROJECT_SOURCE_DIR}/src/ModelHighAPI/ModelHighAPI.i
90 SWIG_ADD_MODULE(SketchAPI python SketchAPI.i ${PROJECT_HEADERS})
91 SWIG_LINK_LIBRARIES(SketchAPI ${SWIG_LINK_LIBRARIES})
94 SET_TARGET_PROPERTIES(_SketchAPI PROPERTIES DEBUG_OUTPUT_NAME _SketchAPI_d)
97 INSTALL(TARGETS _SketchAPI DESTINATION ${SHAPER_INSTALL_SWIG})
98 INSTALL(TARGETS SketchAPI DESTINATION ${SHAPER_INSTALL_BIN})
99 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/SketchAPI.py DESTINATION ${SHAPER_INSTALL_SWIG})
109 # ADD_SUBDIRECTORY (Test)