Salome HOME
GEOM porting to CMake
[modules/geom.git] / src / EntityGUI / Makefile.am
1 # Copyright (C) 2007-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 # GEOM ENTITYGUI : 
21 # File    : Makefile.am
22 # Author  : Alexander BORODIN, Open CASCADE S.A.S. (alexander.borodin@opencascade.com)
23 # Package : EntityGUI
24 #
25 include $(top_srcdir)/adm_local/unix/make_common_starter.am
26
27 if WITH_OPENCV
28   FeatureDetectorDlg_Header = EntityGUI_FeatureDetectorDlg.h
29   FeatureDetectorDlg_Sources = EntityGUI_FeatureDetectorDlg.cxx
30   FeatureDetectorDlg_moc = EntityGUI_FeatureDetectorDlg_moc.cxx
31   Opencv_libs = $(OPENCV_LIBS)
32   Opencv_includes = $(OPENCV_INCLUDES)
33   ShapeRec_dir = $(srcdir)/../ShapeRecognition
34   ShapeRec_la = ../ShapeRecognition/libGEOMShapeRec.la  
35 endif
36
37 PictureImportDlg_Header = EntityGUI_PictureImportDlg.h
38 PictureImportDlg_Sources = EntityGUI_PictureImportDlg.cxx
39 PictureImportDlg_moc = EntityGUI_PictureImportDlg_moc.cxx
40
41 # Libraries targets
42 lib_LTLIBRARIES = libEntityGUI.la
43
44 # header files
45 salomeinclude_HEADERS =                 \
46         EntityGUI.h                     \
47         EntityGUI_Widgets.h             \
48         EntityGUI_SketcherDlg.h         \
49         EntityGUI_3DSketcherDlg.h       \
50         EntityGUI_SubShapeDlg.h         \
51         $(FeatureDetectorDlg_Header)    \
52         $(PictureImportDlg_Header)
53
54 dist_libEntityGUI_la_SOURCES =          \
55         EntityGUI.cxx                   \
56         EntityGUI_Widgets.cxx           \
57         EntityGUI_SketcherDlg.cxx       \
58         EntityGUI_3DSketcherDlg.cxx     \
59         EntityGUI_SubShapeDlg.cxx       \
60         $(FeatureDetectorDlg_Sources)   \
61         $(PictureImportDlg_Sources)
62
63 MOC_FILES =                             \
64         EntityGUI_Widgets_moc.cxx       \
65         EntityGUI_SketcherDlg_moc.cxx   \
66         EntityGUI_3DSketcherDlg_moc.cxx \
67         EntityGUI_SubShapeDlg_moc.cxx   \
68         $(FeatureDetectorDlg_moc)       \
69         $(PictureImportDlg_moc) 
70
71 nodist_libEntityGUI_la_SOURCES =        \
72          $(MOC_FILES)
73
74 UIC_FILES =                             \
75         ui_EntityGUI_1Sel_QTD.h         \
76         ui_EntityGUI_2Sel1Check_QTD.h   \
77         ui_EntityGUI_1Sel1Spin1Check_QTD.h      \
78         ui_EntityGUI_1Spin_QTD.h        \
79         ui_EntityGUI_2Spin_QTD.h        \
80         ui_EntityGUI_3Spin_QTD.h        \
81         ui_EntityGUI_4Spin_QTD.h        \
82         ui_EntityGUI_3Spin1Check_QTD.h  \
83         ui_EntityGUI_4Spin1Check_QTD.h  \
84         ui_EntityGUI_Dir1_QTD.h         \
85         ui_EntityGUI_Dir2_QTD.h         \
86         ui_EntityGUI_Point_QTD.h        \
87         ui_EntityGUI_Skeleton_QTD.h     \
88         ui_EntityGUI_Type_QTD.h         \
89         ui_EntityGUI_Angles_QTD.h       \
90         ui_EntityGUI_Controls_QTD.h
91
92 BUILT_SOURCES = $(UIC_FILES)
93
94 # additional information to compile and link file
95
96 libEntityGUI_la_CPPFLAGS =                      \
97         $(QT_INCLUDES)                          \
98         $(CAS_CPPFLAGS)                         \
99         $(VTK_INCLUDES)                         \
100         $(PYTHON_INCLUDES)                      \
101         $(BOOST_CPPFLAGS)                       \
102         $(KERNEL_CXXFLAGS)                      \
103         $(GUI_CXXFLAGS)                         \
104         $(CORBA_CXXFLAGS)                       \
105         $(CORBA_INCLUDES)                       \
106         $(Opencv_includes)                      \
107         -I$(srcdir)/../GEOMGUI                  \
108         -I$(srcdir)/../DlgRef                   \
109         -I$(srcdir)/../GEOMBase                 \
110         -I$(srcdir)/../OBJECT                   \
111         -I$(srcdir)/../GEOMClient               \
112         -I$(srcdir)/../GEOMImpl                 \
113         -I$(srcdir)/../GEOMFiltersSelection     \
114         -I$(srcdir)/../SKETCHER                 \
115         -I$(ShapeRec_dir)                       \
116         -I$(srcdir)/../GEOM                     \
117         -I$(top_builddir)/src/DlgRef            \
118         -I$(top_builddir)/idl
119
120
121 libEntityGUI_la_LDFLAGS  =                                      \
122         ../GEOMFiltersSelection/libGEOMFiltersSelection.la      \
123         ../GEOMBase/libGEOMBase.la                              \
124         ../SKETCHER/libGEOMSketcher.la                          \
125         ../GEOMGUI/libGEOM.la                                   \
126         $(ShapeRec_la)                                          \
127         $(QT_MT_LIBS)                                           \
128         $(CAS_TKTopAlgo) -lTKernel                              \
129         $(Opencv_libs)