1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
12 ExchangeAPI_Export.cpp
13 ExchangeAPI_Import.cpp
22 ${PROJECT_SOURCE_DIR}/src/Events
23 ${PROJECT_SOURCE_DIR}/src/ModelAPI
24 ${PROJECT_SOURCE_DIR}/src/ModelHighAPI
27 # Plugin headers dependency
29 # TODO(spo): modify ExchangePlugin headers to remove dependency on GeomAPI headers
30 ${PROJECT_SOURCE_DIR}/src/GeomAPI
31 ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
32 ${PROJECT_SOURCE_DIR}/src/ExchangePlugin
35 #TODO(spo): is ${CAS_DEFINITIONS} necessary?
36 ADD_DEFINITIONS(-DEXCHANGEAPI_EXPORTS ${CAS_DEFINITIONS})
37 ADD_LIBRARY(ExchangeAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
38 TARGET_LINK_LIBRARIES(ExchangeAPI ${PROJECT_LIBRARIES})
44 SET_SOURCE_FILES_PROPERTIES(ExchangeAPI.i PROPERTIES CPLUSPLUS ON)
45 SET_SOURCE_FILES_PROPERTIES(ExchangeAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
47 #TODO(spo): is ModelAPI necessary or it could be received by INTERFACE_ (may require modern CMake)?
48 SET(SWIG_LINK_LIBRARIES
55 SET(SWIG_MODULE_ExchangeAPI_EXTRA_DEPS ${SWIG_MODULE_ExchangeAPI_EXTRA_DEPS}
56 ${PROJECT_SOURCE_DIR}/src/ModelHighAPI/ModelHighAPI.i
61 SWIG_ADD_MODULE(ExchangeAPI python ExchangeAPI.i ${PROJECT_HEADERS})
62 SWIG_LINK_LIBRARIES(ExchangeAPI ${SWIG_LINK_LIBRARIES})
65 SET_TARGET_PROPERTIES(_ExchangeAPI PROPERTIES DEBUG_OUTPUT_NAME _ExchangeAPI_d)
68 INSTALL(TARGETS _ExchangeAPI DESTINATION ${SHAPER_INSTALL_SWIG})
69 INSTALL(TARGETS ExchangeAPI DESTINATION ${SHAPER_INSTALL_BIN})
70 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/ExchangeAPI.py DESTINATION ${SHAPER_INSTALL_SWIG})
80 # ADD_SUBDIRECTORY (Test)