1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
8 ConstructionAPI_Plane.h
9 ConstructionAPI_Point.h
13 ConstructionAPI_Axis.cpp
14 ConstructionAPI_Plane.cpp
15 ConstructionAPI_Point.cpp
24 ${PROJECT_SOURCE_DIR}/src/Events
25 ${PROJECT_SOURCE_DIR}/src/ModelAPI
26 ${PROJECT_SOURCE_DIR}/src/ModelHighAPI
29 # Plugin headers dependency
31 # TODO(spo): modify ConstructionPlugin headers to remove dependency on GeomAPI headers
32 ${PROJECT_SOURCE_DIR}/src/GeomAPI
33 # TODO(spo): it is for *_swig.h files. Can we eliminate it?
34 ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
35 ${PROJECT_SOURCE_DIR}/src/ConstructionPlugin
38 #TODO(spo): is ${CAS_DEFINITIONS} necessary?
39 ADD_DEFINITIONS(-DCONSTRUCTIONAPI_EXPORTS ${CAS_DEFINITIONS})
40 ADD_LIBRARY(ConstructionAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
41 TARGET_LINK_LIBRARIES(ConstructionAPI ${PROJECT_LIBRARIES})
47 SET_SOURCE_FILES_PROPERTIES(ConstructionAPI.i PROPERTIES CPLUSPLUS ON)
48 SET_SOURCE_FILES_PROPERTIES(ConstructionAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
50 #TODO(spo): is ModelAPI necessary or it could be received by INTERFACE_ (may require modern CMake)?
51 SET(SWIG_LINK_LIBRARIES
58 SET(SWIG_MODULE_ConstructionAPI_EXTRA_DEPS ${SWIG_MODULE_ConstructionAPI_EXTRA_DEPS}
59 ${PROJECT_SOURCE_DIR}/src/ModelHighAPI/ModelHighAPI.i
64 SWIG_ADD_MODULE(ConstructionAPI python ConstructionAPI.i ${PROJECT_HEADERS})
65 SWIG_LINK_LIBRARIES(ConstructionAPI ${SWIG_LINK_LIBRARIES})
68 SET_TARGET_PROPERTIES(_ConstructionAPI PROPERTIES DEBUG_OUTPUT_NAME _ConstructionAPI_d)
71 INSTALL(TARGETS _ConstructionAPI DESTINATION ${SHAPER_INSTALL_SWIG})
72 INSTALL(TARGETS ConstructionAPI DESTINATION ${SHAPER_INSTALL_BIN})
73 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/ConstructionAPI.py DESTINATION ${SHAPER_INSTALL_SWIG})