]> SALOME platform Git repositories - modules/shaper.git/blob - src/GeomAlgoAPI/CMakeLists.txt
Salome HOME
Feature #535: 5.02. Body placement by translation along a direction
[modules/shaper.git] / src / GeomAlgoAPI / CMakeLists.txt
1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 FIND_PACKAGE(SWIG REQUIRED)
4
5 INCLUDE(${SWIG_USE_FILE})
6 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
7
8 SET(PROJECT_HEADERS
9     GeomAlgoAPI.h
10     GeomAlgoAPI_Tools.h
11     GeomAlgoAPI_CompoundBuilder.h
12     GeomAlgoAPI_FaceBuilder.h
13     GeomAlgoAPI_EdgeBuilder.h
14     GeomAlgoAPI_PointBuilder.h
15     GeomAlgoAPI_SketchBuilder.h
16     GeomAlgoAPI_Extrusion.h
17     GeomAlgoAPI_Prism.h
18     GeomAlgoAPI_Revolution.h
19     GeomAlgoAPI_Boolean.h
20     GeomAlgoAPI_Rotation.h
21     GeomAlgoAPI_Movement.h
22     GeomAlgoAPI_MakeShape.h
23     GeomAlgoAPI_MakeShapeList.h
24     GeomAlgoAPI_ShapeProps.h
25     GeomAlgoAPI_DFLoader.h
26     GeomAlgoAPI_Placement.h
27     GeomAlgoAPI_BREPImport.h
28     GeomAlgoAPI_STEPImport.h
29     GeomAlgoAPI_IGESImport.h
30     GeomAlgoAPI_BREPExport.h
31     GeomAlgoAPI_STEPExport.h
32     GeomAlgoAPI_IGESExport.h
33 )
34
35 SET(PROJECT_SOURCES
36     GeomAlgoAPI_Tools.cpp
37     GeomAlgoAPI_CompoundBuilder.cpp
38     GeomAlgoAPI_FaceBuilder.cpp
39     GeomAlgoAPI_EdgeBuilder.cpp
40     GeomAlgoAPI_PointBuilder.cpp
41     GeomAlgoAPI_SketchBuilder.cpp
42     GeomAlgoAPI_Extrusion.cpp
43     GeomAlgoAPI_Prism.cpp
44     GeomAlgoAPI_Revolution.cpp
45     GeomAlgoAPI_Boolean.cpp
46     GeomAlgoAPI_Rotation.cpp
47     GeomAlgoAPI_Movement.cpp
48     GeomAlgoAPI_MakeShape.cpp
49     GeomAlgoAPI_MakeShapeList.cpp
50     GeomAlgoAPI_ShapeProps.cpp
51     GeomAlgoAPI_DFLoader.cpp
52     GeomAlgoAPI_Placement.cpp
53     GeomAlgoAPI_BREPImport.cpp
54     GeomAlgoAPI_STEPImport.cpp
55     GeomAlgoAPI_IGESImport.cpp
56     GeomAlgoAPI_BREPExport.cpp
57     GeomAlgoAPI_STEPExport.cpp
58     GeomAlgoAPI_IGESExport.cpp
59 )
60
61 SET(PROJECT_LIBRARIES
62     GeomAPI
63     ModelAPI
64     ${CAS_OCAF}
65     ${CAS_SHAPE}
66     ${CAS_TKBO} 
67     ${CAS_TKBool} 
68     ${CAS_TKBRep}
69     ${CAS_TKCAF}
70     ${CAS_TKCAF}
71     ${CAS_TKLCAF}
72     ${CAS_TKPrim}
73     ${CAS_TKSTEP}
74     ${CAS_TKSTEPBase}
75     ${CAS_TKIGES}
76     ${CAS_TKTopAlgo}
77     ${CAS_TKXSBase} 
78 )
79
80 ADD_DEFINITIONS(-DGEOMALGOAPI_EXPORTS ${CAS_DEFINITIONS})
81 ADD_LIBRARY(GeomAlgoAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
82
83 SET(CMAKE_SWIG_FLAGS "-Wall")
84
85 SET_SOURCE_FILES_PROPERTIES(GeomAlgoAPI.i PROPERTIES CPLUSPLUS ON)
86 SET_SOURCE_FILES_PROPERTIES(GeomAlgoAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
87
88 INCLUDE_DIRECTORIES(
89   ../GeomAPI
90   ../ModelAPI
91   ${CAS_INCLUDE_DIRS}
92 )
93
94 TARGET_LINK_LIBRARIES(GeomAlgoAPI ${PROJECT_LIBRARIES})
95
96 SET(SWIG_SCRIPTS
97   ${CMAKE_CURRENT_BINARY_DIR}/GeomAlgoAPI.py
98 )
99
100 SET(SWIG_LINK_LIBRARIES
101   GeomAPI
102   GeomAlgoAPI
103   ${PYTHON_LIBRARIES}
104 )
105
106 SWIG_ADD_MODULE(GeomAlgoAPI python GeomAlgoAPI.i ${PROJECT_HEADERS})
107 SWIG_LINK_LIBRARIES(GeomAlgoAPI ${SWIG_LINK_LIBRARIES})
108
109 IF(WIN32)
110   SET_TARGET_PROPERTIES(_GeomAlgoAPI PROPERTIES DEBUG_OUTPUT_NAME _GeomAlgoAPI_d)
111 ENDIF(WIN32)
112
113 INSTALL(TARGETS _GeomAlgoAPI DESTINATION swig)
114 INSTALL(TARGETS GeomAlgoAPI DESTINATION bin)
115 INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION swig)