Salome HOME
Bug: IsSubShapeBelongsTo() always returns true if theSubObjectIndex > 0
[modules/geom.git] / src / MeasureGUI / CMakeLists.txt
1 # Copyright (C) 2012-2016  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 INCLUDE(UseQtExt)
21
22 # --- options ---
23
24 # additional include directories
25 INCLUDE_DIRECTORIES(
26   ${PTHREAD_INCLUDE_DIR}
27   ${VTK_INCLUDE_DIRS}
28   ${OMNIORB_INCLUDE_DIR}
29   ${OpenCASCADE_INCLUDE_DIR}
30   ${KERNEL_INCLUDE_DIRS}
31   ${GUI_INCLUDE_DIRS}
32   ${PROJECT_BINARY_DIR}/idl
33   ${PROJECT_BINARY_DIR}
34   ${PROJECT_SOURCE_DIR}/src/OBJECT
35   ${PROJECT_SOURCE_DIR}/src/GEOMClient
36   ${PROJECT_SOURCE_DIR}/src/GEOMImpl
37   ${PROJECT_SOURCE_DIR}/src/GEOMGUI
38   ${PROJECT_SOURCE_DIR}/src/GEOMBase
39   ${PROJECT_SOURCE_DIR}/src/DlgRef
40   ${PROJECT_BINARY_DIR}/src/DlgRef
41   ${PROJECT_SOURCE_DIR}/src/GEOMAlgo
42   ${PROJECT_SOURCE_DIR}/src/GEOMUtils
43   ${CMAKE_CURRENT_SOURCE_DIR}
44   ${CMAKE_CURRENT_BINARY_DIR}
45   )
46
47 # additional preprocessor / compiler flags
48 ADD_DEFINITIONS(
49   ${OpenCASCADE_DEFINITIONS}
50   ${OMNIORB_DEFINITIONS}
51   ${QT_DEFINITIONS}
52   )
53
54 # libraries to link to
55 SET(_link_LIBRARIES
56   GEOMBase
57   GEOMUtils
58   )
59
60 # --- resources ---
61
62 # resource files / to be processed by uic
63 SET(_uic_files
64   MeasureGUI_1Sel12LineEdit_QTD.ui
65   MeasureGUI_1Sel1TextView1Check_QTD.ui
66   MeasureGUI_1Sel1TextView2ListBox_QTD.ui
67   MeasureGUI_1Sel1Check1TextView2ListBox_QTD.ui
68   MeasureGUI_1Sel1TextView_QTD.ui
69   MeasureGUI_1Sel3LineEdit_QTD.ui
70   MeasureGUI_1Sel6LineEdit_QTD.ui
71   MeasureGUI_1Sel_Frame_QTD.ui
72   MeasureGUI_1TreeWidget_4Button_QTD.ui
73   MeasureGUI_2Sel1LineEdit_QTD.ui
74   MeasureGUI_2Sel_Frame_QTD.ui
75   MeasureGUI_3Sel_Frame_QTD.ui
76   MeasureGUI_SkeletonBox_QTD.ui
77   )
78
79 # --- headers ---
80
81 SET(MeasureGUI_HEADERS
82   MeasureGUI.h
83   MeasureGUI_Widgets.h
84   MeasureGUI_Skeleton.h
85   MeasureGUI_PropertiesDlg.h
86   MeasureGUI_CenterMassDlg.h
87   MeasureGUI_NormaleDlg.h
88   MeasureGUI_InertiaDlg.h
89   MeasureGUI_BndBoxDlg.h
90   MeasureGUI_DistanceDlg.h
91   MeasureGUI_AnnotationDlg.h
92   MeasureGUI_AnnotationInteractor.h
93   MeasureGUI_AngleDlg.h
94   MeasureGUI_MaxToleranceDlg.h
95   MeasureGUI_WhatisDlg.h
96   MeasureGUI_CheckShapeDlg.h
97   MeasureGUI_CheckCompoundOfBlocksDlg.h
98   MeasureGUI_GetNonBlocksDlg.h
99   MeasureGUI_CheckSelfIntersectionsDlg.h
100   MeasureGUI_FastCheckIntersectionsDlg.h
101   MeasureGUI_PointDlg.h
102   MeasureGUI_ManageDimensionsDlg.h
103   MeasureGUI_CreateDimensionDlg.h
104   MeasureGUI_DimensionCreateTool.h
105   MeasureGUI_DimensionInteractor.h
106   MeasureGUI_DimensionFilter.h
107   MeasureGUI_definitions.h
108   )
109
110 # header files / to be processed by moc
111 SET(_moc_HEADERS
112   MeasureGUI.h
113   MeasureGUI_Widgets.h
114   MeasureGUI_Skeleton.h
115   MeasureGUI_PropertiesDlg.h
116   MeasureGUI_CenterMassDlg.h
117   MeasureGUI_NormaleDlg.h
118   MeasureGUI_InertiaDlg.h
119   MeasureGUI_BndBoxDlg.h
120   MeasureGUI_DistanceDlg.h
121   MeasureGUI_AnnotationDlg.h
122   MeasureGUI_AnnotationInteractor.h
123   MeasureGUI_AngleDlg.h
124   MeasureGUI_MaxToleranceDlg.h
125   MeasureGUI_WhatisDlg.h
126   MeasureGUI_CheckShapeDlg.h
127   MeasureGUI_CheckCompoundOfBlocksDlg.h
128   MeasureGUI_GetNonBlocksDlg.h
129   MeasureGUI_CheckSelfIntersectionsDlg.h
130   MeasureGUI_FastCheckIntersectionsDlg.h
131   MeasureGUI_PointDlg.h
132   MeasureGUI_ManageDimensionsDlg.h
133   MeasureGUI_CreateDimensionDlg.h
134   MeasureGUI_DimensionInteractor.h
135   )
136   
137 IF(SALOME_USE_PLOT2DVIEWER)
138   LIST(APPEND _moc_HEADERS
139     MeasureGUI_ShapeStatisticsDlg.h
140     )
141 ENDIF()
142
143 # header files / uic wrappings
144 QT_WRAP_UIC(_uic_HEADERS ${_uic_files})
145
146 # --- sources ---
147
148 # sources / moc wrappings
149 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
150
151 SET(MeasureGUI_SOURCES
152   MeasureGUI.cxx
153   MeasureGUI_Widgets.cxx
154   MeasureGUI_Skeleton.cxx
155   MeasureGUI_PropertiesDlg.cxx
156   MeasureGUI_CenterMassDlg.cxx
157   MeasureGUI_NormaleDlg.cxx
158   MeasureGUI_InertiaDlg.cxx
159   MeasureGUI_BndBoxDlg.cxx
160   MeasureGUI_DistanceDlg.cxx
161   MeasureGUI_AnnotationDlg.cxx
162   MeasureGUI_AnnotationInteractor.cxx
163   MeasureGUI_AngleDlg.cxx
164   MeasureGUI_MaxToleranceDlg.cxx
165   MeasureGUI_WhatisDlg.cxx
166   MeasureGUI_CheckShapeDlg.cxx
167   MeasureGUI_CheckCompoundOfBlocksDlg.cxx
168   MeasureGUI_GetNonBlocksDlg.cxx
169   MeasureGUI_CheckSelfIntersectionsDlg.cxx
170   MeasureGUI_FastCheckIntersectionsDlg.cxx
171   MeasureGUI_PointDlg.cxx
172   MeasureGUI_ManageDimensionsDlg.cxx
173   MeasureGUI_CreateDimensionDlg.cxx
174   MeasureGUI_DimensionCreateTool.cxx
175   MeasureGUI_DimensionInteractor.cxx
176   MeasureGUI_DimensionFilter.cxx
177   ${_moc_SOURCES}
178   ${_uic_files}
179   )
180
181 IF(SALOME_USE_PLOT2DVIEWER)
182   LIST(APPEND MeasureGUI_SOURCES
183     MeasureGUI_ShapeStatisticsDlg.cxx
184     )
185 ENDIF()
186
187 # --- rules ---
188
189 ADD_LIBRARY(MeasureGUI ${MeasureGUI_SOURCES})
190 TARGET_LINK_LIBRARIES(MeasureGUI ${_link_LIBRARIES})
191 INSTALL(TARGETS MeasureGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})