Salome HOME
Merge Qt5 porting.
[modules/geom.git] / src / MeasureGUI / CMakeLists.txt
1 # Copyright (C) 2012-2015  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   ${CAS_INCLUDE_DIRS}
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   ${CAS_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_AngleDlg.h
92   MeasureGUI_MaxToleranceDlg.h
93   MeasureGUI_WhatisDlg.h
94   MeasureGUI_CheckShapeDlg.h
95   MeasureGUI_CheckCompoundOfBlocksDlg.h
96   MeasureGUI_GetNonBlocksDlg.h
97   MeasureGUI_CheckSelfIntersectionsDlg.h
98   MeasureGUI_FastCheckIntersectionsDlg.h
99   MeasureGUI_PointDlg.h
100   MeasureGUI_ManageDimensionsDlg.h
101   MeasureGUI_CreateDimensionDlg.h
102   MeasureGUI_DimensionCreateTool.h
103   MeasureGUI_DimensionInteractor.h
104   MeasureGUI_DimensionFilter.h
105   MeasureGUI_definitions.h
106   )
107
108 # header files / to be processed by moc
109 SET(_moc_HEADERS
110   MeasureGUI.h
111   MeasureGUI_Widgets.h
112   MeasureGUI_Skeleton.h
113   MeasureGUI_PropertiesDlg.h
114   MeasureGUI_CenterMassDlg.h
115   MeasureGUI_NormaleDlg.h
116   MeasureGUI_InertiaDlg.h
117   MeasureGUI_BndBoxDlg.h
118   MeasureGUI_DistanceDlg.h
119   MeasureGUI_AngleDlg.h
120   MeasureGUI_MaxToleranceDlg.h
121   MeasureGUI_WhatisDlg.h
122   MeasureGUI_CheckShapeDlg.h
123   MeasureGUI_CheckCompoundOfBlocksDlg.h
124   MeasureGUI_GetNonBlocksDlg.h
125   MeasureGUI_CheckSelfIntersectionsDlg.h
126   MeasureGUI_FastCheckIntersectionsDlg.h
127   MeasureGUI_PointDlg.h
128   MeasureGUI_ManageDimensionsDlg.h
129   MeasureGUI_CreateDimensionDlg.h
130   MeasureGUI_DimensionInteractor.h
131   )
132   
133 IF(SALOME_USE_PLOT2DVIEWER)
134   LIST(APPEND _moc_HEADERS
135     MeasureGUI_ShapeStatisticsDlg.h
136     )
137 ENDIF()
138
139 # header files / uic wrappings
140 QT_WRAP_UIC(_uic_HEADERS ${_uic_files})
141
142 # --- sources ---
143
144 # sources / moc wrappings
145 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
146
147 SET(MeasureGUI_SOURCES
148   MeasureGUI.cxx
149   MeasureGUI_Widgets.cxx
150   MeasureGUI_Skeleton.cxx
151   MeasureGUI_PropertiesDlg.cxx
152   MeasureGUI_CenterMassDlg.cxx
153   MeasureGUI_NormaleDlg.cxx
154   MeasureGUI_InertiaDlg.cxx
155   MeasureGUI_BndBoxDlg.cxx
156   MeasureGUI_DistanceDlg.cxx
157   MeasureGUI_AngleDlg.cxx
158   MeasureGUI_MaxToleranceDlg.cxx
159   MeasureGUI_WhatisDlg.cxx
160   MeasureGUI_CheckShapeDlg.cxx
161   MeasureGUI_CheckCompoundOfBlocksDlg.cxx
162   MeasureGUI_GetNonBlocksDlg.cxx
163   MeasureGUI_CheckSelfIntersectionsDlg.cxx
164   MeasureGUI_FastCheckIntersectionsDlg.cxx
165   MeasureGUI_PointDlg.cxx
166   MeasureGUI_ManageDimensionsDlg.cxx
167   MeasureGUI_CreateDimensionDlg.cxx
168   MeasureGUI_DimensionCreateTool.cxx
169   MeasureGUI_DimensionInteractor.cxx
170   MeasureGUI_DimensionFilter.cxx
171   ${_moc_SOURCES}
172   ${_uic_files}
173   )
174
175 IF(SALOME_USE_PLOT2DVIEWER)
176   LIST(APPEND MeasureGUI_SOURCES
177     MeasureGUI_ShapeStatisticsDlg.cxx
178     )
179 ENDIF()
180
181 # --- rules ---
182
183 ADD_LIBRARY(MeasureGUI ${MeasureGUI_SOURCES})
184 TARGET_LINK_LIBRARIES(MeasureGUI ${_link_LIBRARIES})
185 INSTALL(TARGETS MeasureGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})