Salome HOME
Merge relevant changes from V8_0_0_BR branch
[modules/geom.git] / src / RepairGUI / 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(UseQt4Ext)
21
22 # --- options ---
23
24 # additional include directories
25 INCLUDE_DIRECTORIES(
26   ${QT_INCLUDE_DIRS}
27   ${PTHREAD_INCLUDE_DIR}
28   ${VTK_INCLUDE_DIRS}
29   ${OMNIORB_INCLUDE_DIR}
30   ${CAS_INCLUDE_DIRS}
31   ${KERNEL_INCLUDE_DIRS}
32   ${GUI_INCLUDE_DIRS}
33   ${PROJECT_BINARY_DIR}/idl
34   ${PROJECT_BINARY_DIR}
35   ${PROJECT_SOURCE_DIR}/src/OBJECT
36   ${PROJECT_SOURCE_DIR}/src/GEOMClient
37   ${PROJECT_SOURCE_DIR}/src/GEOMImpl
38   ${PROJECT_SOURCE_DIR}/src/GEOMGUI
39   ${PROJECT_SOURCE_DIR}/src/GEOMBase
40   ${PROJECT_SOURCE_DIR}/src/DlgRef
41   ${PROJECT_BINARY_DIR}/src/DlgRef
42   ${PROJECT_SOURCE_DIR}/src/GEOMAlgo
43   ${PROJECT_SOURCE_DIR}/src/GEOMUtils
44   ${CMAKE_CURRENT_SOURCE_DIR}
45   ${CMAKE_CURRENT_BINARY_DIR}
46   )
47
48 # additional preprocessor / compiler flags
49 ADD_DEFINITIONS(
50   ${CAS_DEFINITIONS}
51   ${OMNIORB_DEFINITIONS}
52   ${QT_DEFINITIONS}
53   )
54
55 # libraries to link to
56 SET(_link_LIBRARIES
57   GEOMBase
58   GEOMUtils
59   )
60
61 # --- resources ---
62
63 # resource files / to be processed by uic
64 SET(_uic_files
65   )
66
67 # --- headers ---
68
69 SET(RepairGUI_HEADERS
70   RepairGUI.h
71   RepairGUI_SewingDlg.h
72   RepairGUI_SuppressFacesDlg.h
73   RepairGUI_ShapeProcessDlg.h
74   RepairGUI_CloseContourDlg.h
75   RepairGUI_RemoveIntWiresDlg.h
76   RepairGUI_RemoveHolesDlg.h
77   RepairGUI_DivideEdgeDlg.h
78   RepairGUI_FreeBoundDlg.h
79   RepairGUI_FreeFacesDlg.h
80   RepairGUI_ChangeOrientationDlg.h
81   RepairGUI_GlueDlg.h
82   RepairGUI_LimitToleranceDlg.h
83   RepairGUI_RemoveWebsDlg.h
84   RepairGUI_RemoveExtraEdgesDlg.h
85   RepairGUI_UnionFacesDlg.h
86   RepairGUI_FuseEdgesDlg.h
87   RepairGUI_InspectObjectDlg.h
88   )
89
90 # header files / to be processed by moc
91 SET(_moc_HEADERS
92   RepairGUI_SewingDlg.h
93   RepairGUI_SuppressFacesDlg.h
94   RepairGUI_ShapeProcessDlg.h
95   RepairGUI_CloseContourDlg.h
96   RepairGUI_RemoveIntWiresDlg.h
97   RepairGUI_RemoveHolesDlg.h
98   RepairGUI_DivideEdgeDlg.h
99   RepairGUI_FreeBoundDlg.h
100   RepairGUI_FreeFacesDlg.h
101   RepairGUI_ChangeOrientationDlg.h
102   RepairGUI_GlueDlg.h
103   RepairGUI_LimitToleranceDlg.h
104   RepairGUI_RemoveWebsDlg.h
105   RepairGUI_RemoveExtraEdgesDlg.h
106   RepairGUI_UnionFacesDlg.h
107   RepairGUI_FuseEdgesDlg.h
108   RepairGUI_InspectObjectDlg.h
109   )
110
111 # header files / uic wrappings
112 QT4_WRAP_UI(_uic_HEADERS ${_uic_files})
113
114 # --- sources ---
115
116 # sources / moc wrappings
117 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
118
119 SET(RepairGUI_SOURCES
120   RepairGUI.cxx
121   RepairGUI_SewingDlg.cxx
122   RepairGUI_SuppressFacesDlg.cxx
123   RepairGUI_ShapeProcessDlg.cxx
124   RepairGUI_CloseContourDlg.cxx
125   RepairGUI_RemoveIntWiresDlg.cxx
126   RepairGUI_RemoveHolesDlg.cxx
127   RepairGUI_DivideEdgeDlg.cxx
128   RepairGUI_FreeBoundDlg.cxx
129   RepairGUI_FreeFacesDlg.cxx
130   RepairGUI_ChangeOrientationDlg.cxx
131   RepairGUI_GlueDlg.cxx
132   RepairGUI_LimitToleranceDlg.cxx
133   RepairGUI_RemoveWebsDlg.cxx
134   RepairGUI_RemoveExtraEdgesDlg.cxx
135   RepairGUI_UnionFacesDlg.cxx
136   RepairGUI_FuseEdgesDlg.cxx
137   RepairGUI_InspectObjectDlg.cxx
138   ${_moc_SOURCES}
139   ${_uic_files}
140   )
141
142 # --- rules ---
143
144 ADD_LIBRARY(RepairGUI ${RepairGUI_SOURCES})
145 TARGET_LINK_LIBRARIES(RepairGUI ${_link_LIBRARIES})
146 INSTALL(TARGETS RepairGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})