]> SALOME platform Git repositories - modules/shaper.git/blob - src/GeomDataAPI/CMakeLists.txt
Salome HOME
Speed up the redraw of sketch with constraints moved by the point of the line
[modules/shaper.git] / src / GeomDataAPI / CMakeLists.txt
1 FIND_PACKAGE(SWIG REQUIRED)
2 INCLUDE(${SWIG_USE_FILE})
3 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
4 INCLUDE(UnitTest)
5
6 SET(PROJECT_HEADERS
7     GeomDataAPI.h
8     GeomDataAPI_Point.h
9     GeomDataAPI_Dir.h
10     GeomDataAPI_Point2D.h
11 )
12
13 SET(CMAKE_SWIG_FLAGS "")
14
15 SET_SOURCE_FILES_PROPERTIES(GeomDataAPI.i PROPERTIES CPLUSPLUS ON)
16 SET_SOURCE_FILES_PROPERTIES(GeomDataAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
17
18 INCLUDE_DIRECTORIES(
19   ../ModelAPI
20 )
21
22 SET(SWIG_SCRIPTS
23   ${CMAKE_CURRENT_BINARY_DIR}/GeomDataAPI.py
24 )
25
26 SET(SWIG_LINK_LIBRARIES
27   ModelAPI
28   ${PYTHON_LIBRARIES}
29 )
30
31 SWIG_ADD_MODULE(GeomDataAPI python GeomDataAPI.i ${PROJECT_HEADERS})
32 SWIG_LINK_LIBRARIES(GeomDataAPI ${SWIG_LINK_LIBRARIES})
33
34 IF(WIN32)
35   SET_TARGET_PROPERTIES(_GeomDataAPI PROPERTIES DEBUG_OUTPUT_NAME _GeomDataAPI_d)
36 ENDIF(WIN32)
37
38 INSTALL(TARGETS _GeomDataAPI DESTINATION swig)
39 INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION swig)
40
41 ADD_UNIT_TESTS(TestConstants.py)