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