1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
4 FIND_PACKAGE(SWIG REQUIRED)
6 INCLUDE(${SWIG_USE_FILE})
20 Events_MessageGroup.cpp
27 ADD_DEFINITIONS(-DEVENTS_EXPORTS)
28 ADD_LIBRARY(Events SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
30 SET(CMAKE_SWIG_FLAGS -threads -Wall)
32 SET_SOURCE_FILES_PROPERTIES(Events.i PROPERTIES CPLUSPLUS ON)
33 SET_SOURCE_FILES_PROPERTIES(Events.i PROPERTIES SWIG_DEFINITIONS "-shadow")
38 TARGET_LINK_LIBRARIES(Events ${PROJECT_LIBRARIES})
41 ${CMAKE_CURRENT_BINARY_DIR}/EventsAPI.py
44 SET(SWIG_LINK_LIBRARIES
49 SWIG_ADD_MODULE(EventsAPI python Events.i ${PROJECT_HEADERS})
50 SWIG_LINK_LIBRARIES(EventsAPI ${SWIG_LINK_LIBRARIES})
53 SET_TARGET_PROPERTIES(_EventsAPI PROPERTIES DEBUG_OUTPUT_NAME _EventsAPI_d)
56 INSTALL(TARGETS Events DESTINATION bin)
57 INSTALL(TARGETS _EventsAPI DESTINATION swig)
58 INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION swig)