]> SALOME platform Git repositories - modules/shaper.git/blob - src/PartSet/CMakeLists.txt
Salome HOME
#1371 Using auxilliary Sketch elements in any Feature: code improvement to separate...
[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_OverconstraintListener.h
15         PartSet_PreviewPlanes.h
16         PartSet_Tools.h
17         PartSet_WidgetSketchLabel.h
18         PartSet_Validators.h
19         PartSet_WidgetPoint2d.h
20         PartSet_WidgetEditor.h
21         PartSet_WidgetMultiSelector.h
22         PartSet_WidgetMultiSelectorComposite.h
23         PartSet_WidgetPoint2dDistance.h
24         PartSet_WidgetPoint2DFlyout.h
25         PartSet_WidgetShapeSelector.h
26         PartSet_WidgetFileSelector.h
27         PartSet_Filters.h
28         PartSet_FilterInfinite.h
29         PartSet_ResultSketchPrs.h
30         PartSet_SketcherMgr.h
31         PartSet_SketcherReetntrantMgr.h
32         PartSet_MenuMgr.h
33         PartSet_WidgetSketchCreator.h
34         PartSet_IconFactory.h
35         PartSet_WidgetChoice.h
36 )
37
38 SET(PROJECT_SOURCES
39         PartSet_CustomPrs.cpp
40         PartSet_ExternalObjectsMgr.cpp
41         PartSet_Module.cpp
42         PartSet_OperationPrs.cpp
43         PartSet_OverconstraintListener.cpp
44         PartSet_PreviewPlanes.cpp
45         PartSet_Tools.cpp
46         PartSet_WidgetSketchLabel.cpp
47         PartSet_Validators.cpp
48         PartSet_WidgetEditor.cpp
49         PartSet_WidgetMultiSelector.cpp
50         PartSet_WidgetMultiSelectorComposite.cpp
51         PartSet_WidgetPoint2d.cpp
52         PartSet_WidgetPoint2dDistance.cpp
53         PartSet_WidgetPoint2DFlyout.cpp
54         PartSet_WidgetShapeSelector.cpp
55         PartSet_WidgetFileSelector.cpp
56         PartSet_Filters.cpp
57         PartSet_FilterInfinite.cpp
58         PartSet_ResultSketchPrs.cpp
59         PartSet_SketcherMgr.cpp
60         PartSet_SketcherReetntrantMgr.cpp
61         PartSet_MenuMgr.cpp
62         PartSet_WidgetSketchCreator.cpp
63         PartSet_IconFactory.cpp
64 )
65
66 SET(PROJECT_RESOURCES
67     PartSet_icons.qrc
68 )
69
70 #SET(TEXT_RESOURCES
71 #       PartSet_msg_fr.ts
72 #)
73
74 SET(PROJECT_LIBRARIES
75     ModuleBase
76     Config
77     GeomAPI
78     GeomDataAPI
79         SketcherPrs
80     ${QT_LIBRARIES}
81     ${CAS_KERNEL}
82     ${CAS_SHAPE}
83 )
84
85 SET(PROJECT_AUTOMOC
86     ${CMAKE_CURRENT_BINARY_DIR}/PartSet_automoc.cpp
87 )
88
89 QT4_ADD_RESOURCES(PROJECT_COMPILED_RESOURCES ${PROJECT_RESOURCES})
90 #QT4_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
91 #QT4_CREATE_TRANSLATION(QM_RESOURCES
92 #                                          ${PROJECT_SOURCES}
93 #                                          ${TEXT_RESOURCES}
94 #                                          OPTIONS -extensions cpp -no-recursive
95 #                                          )
96
97 #SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES} ${QM_RESOURCES})
98 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES})
99 #SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES} ${PROJECT_RESOURCES})
100 SOURCE_GROUP ("Resource Files" FILES ${PROJECT_RESOURCES})
101
102 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/XGUI
103                     ${PROJECT_SOURCE_DIR}/src/Config
104                     ${PROJECT_SOURCE_DIR}/src/Events
105                     ${PROJECT_SOURCE_DIR}/src/ModuleBase
106                     ${PROJECT_SOURCE_DIR}/src/ModelAPI
107                     ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
108                     ${PROJECT_SOURCE_DIR}/src/GeomAlgoAPI
109                     ${PROJECT_SOURCE_DIR}/src/SketchPlugin
110                     ${PROJECT_SOURCE_DIR}/src/ExchangePlugin
111                     ${PROJECT_SOURCE_DIR}/src/SketcherPrs
112                     ${PROJECT_SOURCE_DIR}/src/FeaturesPlugin
113                     ${PROJECT_SOURCE_DIR}/src/PartSetPlugin
114                     ${PROJECT_SOURCE_DIR}/src/GeomAPI
115                     ${CAS_INCLUDE_DIRS}
116                     ${SUIT_INCLUDE}
117 )
118
119 IF(NOT ${HAVE_SALOME})
120   INCLUDE_DIRECTORIES(${APPELEMENTS_INCLUDE_DIR})
121 ENDIF(NOT ${HAVE_SALOME})
122
123 ADD_DEFINITIONS(-DPARTSET_EXPORTS ${CAS_DEFINITIONS})
124 ADD_LIBRARY(PartSet SHARED
125         ${PROJECT_SOURCES}
126         ${PROJECT_HEADERS}
127         ${PROJECT_COMPILED_RESOURCES}
128 #       ${TEXT_RESOURCES}
129 #       ${QM_RESOURCES}
130 )
131
132 # The Qt5Widgets_LIBRARIES variable also includes QtGui and QtCore
133 TARGET_LINK_LIBRARIES(PartSet ${PROJECT_LIBRARIES} XGUI ModelAPI GeomAlgoAPI)
134
135 ADD_DEPENDENCIES(PartSet ModuleBase)
136
137 INSTALL(TARGETS PartSet DESTINATION ${SHAPER_INSTALL_BIN})
138 #INSTALL(FILES ${QM_RESOURCES} DESTINATION bin)