Salome HOME
7d40a3315e38aee9382a86ef3d2bc6d44818807c
[modules/geom.git] / src / RepairGUI / CMakeLists.txt
1 # Copyright (C) 2012-2013  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.
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 INCLUDE(${QT_USE_FILE})
22
23 # --- options ---
24
25 # additional include directories
26 INCLUDE_DIRECTORIES(
27   ${QT_INCLUDE_DIRS}
28   ${PTHREAD_INCLUDE_DIR}
29   ${VTK_INCLUDE_DIRS}
30   ${OMNIORB_INCLUDE_DIR}
31   ${CAS_INCLUDE_DIRS}
32   ${KERNEL_INCLUDE_DIRS}
33   ${GUI_INCLUDE_DIRS}
34   ${PROJECT_BINARY_DIR}/idl
35   ${PROJECT_BINARY_DIR}
36   ${PROJECT_SOURCE_DIR}/src/OBJECT
37   ${PROJECT_SOURCE_DIR}/src/GEOMClient
38   ${PROJECT_SOURCE_DIR}/src/GEOMImpl
39   ${PROJECT_SOURCE_DIR}/src/GEOMGUI
40   ${PROJECT_SOURCE_DIR}/src/GEOMBase
41   ${PROJECT_SOURCE_DIR}/src/DlgRef
42   ${PROJECT_BINARY_DIR}/src/DlgRef
43   ${PROJECT_SOURCE_DIR}/src/GEOMAlgo
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   )
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   )
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   )
107
108 # header files / uic wrappings
109 QT4_WRAP_UI(_uic_HEADERS ${_uic_files})
110
111 # --- sources ---
112
113 # sources / moc wrappings
114 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
115
116 SET(RepairGUI_SOURCES
117   RepairGUI.cxx
118   RepairGUI_SewingDlg.cxx
119   RepairGUI_SuppressFacesDlg.cxx
120   RepairGUI_ShapeProcessDlg.cxx
121   RepairGUI_CloseContourDlg.cxx
122   RepairGUI_RemoveIntWiresDlg.cxx
123   RepairGUI_RemoveHolesDlg.cxx
124   RepairGUI_DivideEdgeDlg.cxx
125   RepairGUI_FreeBoundDlg.cxx
126   RepairGUI_FreeFacesDlg.cxx
127   RepairGUI_ChangeOrientationDlg.cxx
128   RepairGUI_GlueDlg.cxx
129   RepairGUI_LimitToleranceDlg.cxx
130   RepairGUI_RemoveWebsDlg.cxx
131   RepairGUI_RemoveExtraEdgesDlg.cxx
132   RepairGUI_UnionFacesDlg.cxx
133   RepairGUI_FuseEdgesDlg.cxx
134   ${_moc_SOURCES}
135   ${_uic_files}
136   )
137
138 # --- rules ---
139
140 ADD_LIBRARY(RepairGUI ${RepairGUI_SOURCES})
141 TARGET_LINK_LIBRARIES(RepairGUI ${_link_LIBRARIES})
142 INSTALL(TARGETS RepairGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})