Salome HOME
a8e4a1587cc66dbf3d2ed55661eaecd97c530627
[modules/geom.git] / src / RepairGUI / CMakeLists.txt
1 # Copyright (C) 2012-2019  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   )
65
66 # --- headers ---
67
68 SET(RepairGUI_HEADERS
69   RepairGUI.h
70   RepairGUI_SewingDlg.h
71   RepairGUI_SuppressFacesDlg.h
72   RepairGUI_ShapeProcessDlg.h
73   RepairGUI_CloseContourDlg.h
74   RepairGUI_RemoveIntWiresDlg.h
75   RepairGUI_RemoveHolesDlg.h
76   RepairGUI_DivideEdgeDlg.h
77   RepairGUI_FreeBoundDlg.h
78   RepairGUI_FreeFacesDlg.h
79   RepairGUI_ChangeOrientationDlg.h
80   RepairGUI_GlueDlg.h
81   RepairGUI_LimitToleranceDlg.h
82   RepairGUI_RemoveWebsDlg.h
83   RepairGUI_RemoveExtraEdgesDlg.h
84   RepairGUI_UnionFacesDlg.h
85   RepairGUI_FuseEdgesDlg.h
86   RepairGUI_InspectObjectDlg.h
87   )
88
89 # header files / to be processed by moc
90 SET(_moc_HEADERS
91   RepairGUI_SewingDlg.h
92   RepairGUI_SuppressFacesDlg.h
93   RepairGUI_ShapeProcessDlg.h
94   RepairGUI_CloseContourDlg.h
95   RepairGUI_RemoveIntWiresDlg.h
96   RepairGUI_RemoveHolesDlg.h
97   RepairGUI_DivideEdgeDlg.h
98   RepairGUI_FreeBoundDlg.h
99   RepairGUI_FreeFacesDlg.h
100   RepairGUI_ChangeOrientationDlg.h
101   RepairGUI_GlueDlg.h
102   RepairGUI_LimitToleranceDlg.h
103   RepairGUI_RemoveWebsDlg.h
104   RepairGUI_RemoveExtraEdgesDlg.h
105   RepairGUI_UnionFacesDlg.h
106   RepairGUI_FuseEdgesDlg.h
107   RepairGUI_InspectObjectDlg.h
108   )
109
110 # header files / uic wrappings
111 QT_WRAP_UIC(_uic_HEADERS ${_uic_files})
112
113 # --- sources ---
114
115 # sources / moc wrappings
116 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
117
118 SET(RepairGUI_SOURCES
119   RepairGUI.cxx
120   RepairGUI_SewingDlg.cxx
121   RepairGUI_SuppressFacesDlg.cxx
122   RepairGUI_ShapeProcessDlg.cxx
123   RepairGUI_CloseContourDlg.cxx
124   RepairGUI_RemoveIntWiresDlg.cxx
125   RepairGUI_RemoveHolesDlg.cxx
126   RepairGUI_DivideEdgeDlg.cxx
127   RepairGUI_FreeBoundDlg.cxx
128   RepairGUI_FreeFacesDlg.cxx
129   RepairGUI_ChangeOrientationDlg.cxx
130   RepairGUI_GlueDlg.cxx
131   RepairGUI_LimitToleranceDlg.cxx
132   RepairGUI_RemoveWebsDlg.cxx
133   RepairGUI_RemoveExtraEdgesDlg.cxx
134   RepairGUI_UnionFacesDlg.cxx
135   RepairGUI_FuseEdgesDlg.cxx
136   RepairGUI_InspectObjectDlg.cxx
137   ${_moc_SOURCES}
138   ${_uic_files}
139   )
140
141 # --- rules ---
142
143 ADD_LIBRARY(RepairGUI ${RepairGUI_SOURCES})
144 TARGET_LINK_LIBRARIES(RepairGUI ${_link_LIBRARIES})
145 INSTALL(TARGETS RepairGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})