1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 FIND_PACKAGE(SWIG REQUIRED)
4 INCLUDE(${SWIG_USE_FILE})
5 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
15 SET(CMAKE_SWIG_FLAGS "-Wall")
17 SET_SOURCE_FILES_PROPERTIES(GeomDataAPI.i PROPERTIES CPLUSPLUS ON)
18 SET_SOURCE_FILES_PROPERTIES(GeomDataAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
25 ${CMAKE_CURRENT_BINARY_DIR}/GeomDataAPI.py
28 SET(SWIG_LINK_LIBRARIES
33 SWIG_ADD_MODULE(GeomDataAPI python GeomDataAPI.i ${PROJECT_HEADERS})
34 SWIG_LINK_LIBRARIES(GeomDataAPI ${SWIG_LINK_LIBRARIES})
37 SET_TARGET_PROPERTIES(_GeomDataAPI PROPERTIES DEBUG_OUTPUT_NAME _GeomDataAPI_d)
40 INSTALL(TARGETS _GeomDataAPI DESTINATION swig)
41 INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION swig)
43 ADD_UNIT_TESTS(TestConstants.py)