1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
10 SketchAPI_IntersectionPoint.h
14 SketchAPI_SketchEntity.h
16 SketchAPI_Projection.h
19 SketchAPI_Translation.h
25 SketchAPI_Constraint.cpp
26 SketchAPI_IntersectionPoint.cpp
30 SketchAPI_SketchEntity.cpp
32 SketchAPI_Projection.cpp
33 SketchAPI_Rectangle.cpp
34 SketchAPI_Rotation.cpp
35 SketchAPI_Translation.cpp
44 ${PROJECT_SOURCE_DIR}/src/Events
45 ${PROJECT_SOURCE_DIR}/src/GeomAPI
46 ${PROJECT_SOURCE_DIR}/src/ModelAPI
47 ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
48 ${PROJECT_SOURCE_DIR}/src/ModelHighAPI
49 ${PROJECT_SOURCE_DIR}/src/SketcherPrs
52 # Plugin headers dependency
54 # TODO(spo): modify ConstructionPlugin headers to remove dependency on GeomAPI headers
55 ${PROJECT_SOURCE_DIR}/src/Config
56 ${PROJECT_SOURCE_DIR}/src/GeomAPI
57 ${PROJECT_SOURCE_DIR}/src/SketchPlugin
60 #TODO(spo): is ${CAS_DEFINITIONS} necessary?
61 ADD_DEFINITIONS(-DSKETCHAPI_EXPORTS ${CAS_DEFINITIONS})
62 ADD_LIBRARY(SketchAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
63 TARGET_LINK_LIBRARIES(SketchAPI ${PROJECT_LIBRARIES})
69 SET_SOURCE_FILES_PROPERTIES(SketchAPI.i PROPERTIES CPLUSPLUS ON)
70 SET_SOURCE_FILES_PROPERTIES(SketchAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
72 #TODO(spo): is ModelAPI necessary or it could be received by INTERFACE_ (may require modern CMake)?
73 SET(SWIG_LINK_LIBRARIES
80 SET(SWIG_MODULE_SketchAPI_EXTRA_DEPS ${SWIG_MODULE_SketchAPI_EXTRA_DEPS}
81 ${PROJECT_SOURCE_DIR}/src/ModelHighAPI/ModelHighAPI.i
86 SWIG_ADD_MODULE(SketchAPI python SketchAPI.i ${PROJECT_HEADERS})
87 SWIG_LINK_LIBRARIES(SketchAPI ${SWIG_LINK_LIBRARIES})
90 SET_TARGET_PROPERTIES(_SketchAPI PROPERTIES DEBUG_OUTPUT_NAME _SketchAPI_d)
93 INSTALL(TARGETS _SketchAPI DESTINATION ${SHAPER_INSTALL_SWIG})
94 INSTALL(TARGETS SketchAPI DESTINATION ${SHAPER_INSTALL_BIN})
95 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/SketchAPI.py DESTINATION ${SHAPER_INSTALL_SWIG})
105 # ADD_SUBDIRECTORY (Test)