]> SALOME platform Git repositories - modules/shaper.git/blob - src/PartSet/CMakeLists.txt
Salome HOME
A correction to check modified value in extrusion cut/sketch/etc operations.
[modules/shaper.git] / src / PartSet / CMakeLists.txt
1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 INCLUDE(Common)
4
5 SET(CMAKE_AUTOMOC ON)
6
7 SET(PROJECT_HEADERS
8         PartSet.h
9         PartSet_Constants.h
10         PartSet_CustomPrs.h
11         PartSet_ExternalObjectsMgr.h
12         PartSet_Module.h
13         PartSet_OperationPrs.h
14         PartSet_Tools.h
15         PartSet_WidgetSketchLabel.h
16         PartSet_Validators.h
17         PartSet_WidgetPoint2d.h
18         PartSet_WidgetPoint2dAngle.h
19         PartSet_WidgetEditor.h
20         PartSet_WidgetMultiSelector.h
21         PartSet_WidgetPoint2dDistance.h
22         PartSet_WidgetPoint2DFlyout.h
23         PartSet_WidgetShapeSelector.h
24         PartSet_WidgetFileSelector.h
25         PartSet_Filters.h
26         PartSet_FilterInfinite.h
27         PartSet_SketcherMgr.h
28         PartSet_SketcherReetntrantMgr.h
29         PartSet_MenuMgr.h
30         PartSet_WidgetSketchCreator.h
31         PartSet_IconFactory.h
32 )
33
34 SET(PROJECT_SOURCES
35         PartSet_CustomPrs.cpp
36         PartSet_ExternalObjectsMgr.cpp
37         PartSet_Module.cpp
38         PartSet_OperationPrs.cpp
39         PartSet_Tools.cpp
40         PartSet_WidgetSketchLabel.cpp
41         PartSet_Validators.cpp
42         PartSet_WidgetEditor.cpp
43         PartSet_WidgetMultiSelector.cpp
44         PartSet_WidgetPoint2d.cpp
45         PartSet_WidgetPoint2dAngle.cpp
46         PartSet_WidgetPoint2dDistance.cpp
47         PartSet_WidgetPoint2DFlyout.cpp
48         PartSet_WidgetShapeSelector.cpp
49         PartSet_WidgetFileSelector.cpp
50         PartSet_Filters.cpp
51         PartSet_FilterInfinite.cpp
52         PartSet_SketcherMgr.cpp
53         PartSet_SketcherReetntrantMgr.cpp
54         PartSet_MenuMgr.cpp
55         PartSet_WidgetSketchCreator.cpp
56         PartSet_IconFactory.cpp
57 )
58
59 SET(PROJECT_RESOURCES 
60     PartSet_icons.qrc
61 )
62
63 #SET(TEXT_RESOURCES
64 #       PartSet_msg_fr.ts
65 #)
66
67 SET(PROJECT_LIBRARIES
68     ModuleBase
69     Config
70     GeomAPI
71     GeomValidators
72     GeomDataAPI
73         SketcherPrs
74     ${QT_LIBRARIES}
75     ${CAS_KERNEL}
76     ${CAS_SHAPE}
77 )
78
79 SET(PROJECT_AUTOMOC 
80     ${CMAKE_CURRENT_BINARY_DIR}/PartSet_automoc.cpp
81 )
82
83 QT4_ADD_RESOURCES(PROJECT_COMPILED_RESOURCES ${PROJECT_RESOURCES})
84 #QT4_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
85 #QT4_CREATE_TRANSLATION(QM_RESOURCES 
86 #                                          ${PROJECT_SOURCES}
87 #                                          ${TEXT_RESOURCES}
88 #                                          OPTIONS -extensions cpp -no-recursive
89 #                                          )
90
91 #SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES} ${QM_RESOURCES})
92 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES})
93 #SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES} ${PROJECT_RESOURCES})
94 SOURCE_GROUP ("Resource Files" FILES ${PROJECT_RESOURCES})
95
96 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/XGUI 
97                     ${CMAKE_SOURCE_DIR}/src/Config
98                     ${CMAKE_SOURCE_DIR}/src/Events
99                     ${CMAKE_SOURCE_DIR}/src/ModuleBase
100                     ${CMAKE_SOURCE_DIR}/src/ModelAPI
101                     ${CMAKE_SOURCE_DIR}/src/GeomDataAPI
102                     ${CMAKE_SOURCE_DIR}/src/GeomAlgoAPI
103                     ${CMAKE_SOURCE_DIR}/src/SketchPlugin
104                     ${CMAKE_SOURCE_DIR}/src/ExchangePlugin
105                     ${CMAKE_SOURCE_DIR}/src/SketcherPrs
106                     ${CMAKE_SOURCE_DIR}/src/FeaturesPlugin
107                     ${CMAKE_SOURCE_DIR}/src/PartSetPlugin
108                     ${CMAKE_SOURCE_DIR}/src/GeomAPI
109                     ${CMAKE_SOURCE_DIR}/src/GeomValidators
110                     ${CMAKE_SOURCE_DIR}/src/AppElements
111                     ${CAS_INCLUDE_DIRS}
112                                         ${SUIT_INCLUDE}
113 )
114
115 ADD_DEFINITIONS(-DPARTSET_EXPORTS ${CAS_DEFINITIONS})
116 ADD_LIBRARY(PartSet SHARED 
117         ${PROJECT_SOURCES} 
118         ${PROJECT_HEADERS} 
119         ${PROJECT_COMPILED_RESOURCES} 
120 #       ${TEXT_RESOURCES} 
121 #       ${QM_RESOURCES}
122 )
123
124 # The Qt5Widgets_LIBRARIES variable also includes QtGui and QtCore
125 TARGET_LINK_LIBRARIES(PartSet ${PROJECT_LIBRARIES} XGUI ModelAPI GeomAlgoAPI)
126
127 ADD_DEPENDENCIES(PartSet ModuleBase)
128
129 INSTALL(TARGETS PartSet DESTINATION bin)
130 #INSTALL(FILES ${QM_RESOURCES} DESTINATION bin)