]> SALOME platform Git repositories - modules/shaper.git/blob - src/GeomDataAPI/CMakeLists.txt
Salome HOME
Merge branch 'Dev_0.6.1' of newgeom:newgeom into Dev_0.6.1
[modules/shaper.git] / src / GeomDataAPI / CMakeLists.txt
1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 FIND_PACKAGE(SWIG REQUIRED)
4 INCLUDE(${SWIG_USE_FILE})
5 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
6 INCLUDE(UnitTest)
7
8 SET(PROJECT_HEADERS
9     GeomDataAPI.h
10     GeomDataAPI_Point.h
11     GeomDataAPI_Dir.h
12     GeomDataAPI_Point2D.h
13 )
14
15 SET(CMAKE_SWIG_FLAGS "-Wall")
16
17 SET_SOURCE_FILES_PROPERTIES(GeomDataAPI.i PROPERTIES CPLUSPLUS ON)
18 SET_SOURCE_FILES_PROPERTIES(GeomDataAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
19
20 INCLUDE_DIRECTORIES(
21   ../ModelAPI
22 )
23
24 SET(SWIG_SCRIPTS
25   ${CMAKE_CURRENT_BINARY_DIR}/GeomDataAPI.py
26 )
27
28 SET(SWIG_LINK_LIBRARIES
29   ModelAPI
30   ${PYTHON_LIBRARIES}
31 )
32
33 SWIG_ADD_MODULE(GeomDataAPI python GeomDataAPI.i ${PROJECT_HEADERS})
34 SWIG_LINK_LIBRARIES(GeomDataAPI ${SWIG_LINK_LIBRARIES})
35
36 IF(WIN32)
37   SET_TARGET_PROPERTIES(_GeomDataAPI PROPERTIES DEBUG_OUTPUT_NAME _GeomDataAPI_d)
38 ENDIF(WIN32)
39
40 INSTALL(TARGETS _GeomDataAPI DESTINATION swig)
41 INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION swig)
42
43 ADD_UNIT_TESTS(TestConstants.py)