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})
18 GeomDataAPI_Point2D.cpp
26 ../GeomAPI # only for SWIG
30 ADD_DEFINITIONS(-DGEOMDATAAPI_EXPORTS)
31 ADD_LIBRARY(GeomDataAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
32 SET_TARGET_PROPERTIES(GeomDataAPI PROPERTIES LINKER_LANGUAGE CXX)
33 TARGET_LINK_LIBRARIES(GeomDataAPI ${PROJECT_LIBRARIES})
35 SET(CMAKE_SWIG_FLAGS "-Wall")
37 SET_SOURCE_FILES_PROPERTIES(GeomDataAPI.i PROPERTIES CPLUSPLUS ON)
38 SET_SOURCE_FILES_PROPERTIES(GeomDataAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
41 ${CMAKE_CURRENT_BINARY_DIR}/GeomDataAPI.py
44 SET(SWIG_LINK_LIBRARIES
49 SWIG_ADD_MODULE(GeomDataAPI python GeomDataAPI.i ${PROJECT_HEADERS})
50 SWIG_LINK_LIBRARIES(GeomDataAPI ${SWIG_LINK_LIBRARIES})
53 SET_TARGET_PROPERTIES(_GeomDataAPI PROPERTIES DEBUG_OUTPUT_NAME _GeomDataAPI_d)
56 INSTALL(TARGETS GeomDataAPI DESTINATION ${SHAPER_INSTALL_BIN})
57 INSTALL(TARGETS _GeomDataAPI DESTINATION ${SHAPER_INSTALL_SWIG})
58 INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION ${SHAPER_INSTALL_SWIG})
60 ADD_UNIT_TESTS(TestConstants.py)