1 FIND_PACKAGE(SWIG REQUIRED)
2 INCLUDE(${SWIG_USE_FILE})
3 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
13 SET(CMAKE_SWIG_FLAGS "")
15 SET_SOURCE_FILES_PROPERTIES(GeomDataAPI.i PROPERTIES CPLUSPLUS ON)
16 SET_SOURCE_FILES_PROPERTIES(GeomDataAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
23 ${CMAKE_CURRENT_BINARY_DIR}/GeomDataAPI.py
26 SET(SWIG_LINK_LIBRARIES
31 SWIG_ADD_MODULE(GeomDataAPI python GeomDataAPI.i ${PROJECT_HEADERS})
32 SWIG_LINK_LIBRARIES(GeomDataAPI ${SWIG_LINK_LIBRARIES})
35 SET_TARGET_PROPERTIES(_GeomDataAPI PROPERTIES DEBUG_OUTPUT_NAME _GeomDataAPI_d)
38 INSTALL(TARGETS _GeomDataAPI DESTINATION swig)
39 INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION swig)
41 ADD_UNIT_TESTS(TestConstants.py)