Salome HOME
Merge from V6_main 01/04/2013
[modules/gui.git] / src / TreeData / Test / Makefile.am
1 # Copyright (C) 2010-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 # Author : Guillaume Boulant (EDF) 
20 #
21
22 include $(top_srcdir)/adm_local/unix/make_common_starter.am
23
24 # moc-files generation
25 %_moc.cxx: %.hxx
26         $(MOC) $< -o $@
27
28 mostlyclean-local:
29         rm -f @builddir@/*_moc.cxx
30         rm -f @builddir@/*.qm
31         rm -f @builddir@/*_moc.cxx @builddir@/ui_*.h
32
33 # qt forms files generation (uic)
34 ui_%.h: %.ui
35         $(UIC) -o $@ $<
36
37
38 CORBA_CXXFLAGS=@OMNIORB_CXXFLAGS@ @OMNIORB_INCLUDES@
39 CORBA_LIBS=@OMNIORB_LIBS@
40 QT_CXXFLAGS=@QT_INCLUDES@ @QT_MT_INCLUDES@
41
42 COMMON_CPP_FLAGS = \
43         $(QT_CXXFLAGS) \
44         $(CORBA_CXXFLAGS) \
45         $(KERNEL_CXXFLAGS) \
46         -I$(top_srcdir)/src/GuiHelpers \
47         -I$(top_srcdir)/src/TreeData \
48         -I.
49
50 COMMON_LIBS  = \
51         $(CORBA_LIBS) $(QT_LIBS) $(VTK_LIBS) \
52         $(top_builddir)/src/TreeData/libSalomeTreeData.la \
53         $(top_builddir)/src/GuiHelpers/libSalomeGuiHelpers.la \
54         $(top_builddir)/src/SUIT/libsuit.la \
55         $(top_builddir)/src/CAM/libCAM.la \
56         $(top_builddir)/src/Plot2d/libPlot2d.la \
57         $(top_builddir)/src/LightApp/libLightApp.la \
58         $(top_builddir)/src/SalomeApp/libSalomeApp.la \
59         $(KERNEL_LDFLAGS) -lSalomeLifeCycleCORBA -lSalomeKernelHelpers @LIBXML_LIBS@
60
61 # Program targets
62 bin_PROGRAMS = TreeData_guitester TreeData_tester
63
64 MOC_FILES_HXX = \
65         mainwindow_moc.cxx
66
67 UIC_FILES = \
68         ui_mainwindow.h
69
70 BUILT_SOURCES = $(UIC_FILES)
71
72 nodist_TreeData_guitester_SOURCES = $(MOC_FILES_HXX) $(UIC_FILES)
73
74 TreeData_guitester_SOURCES = \
75         testhelper.hxx \
76         testhelper.cxx \
77         guitester.cxx \
78         mainwindow.hxx \
79         mainwindow.cxx \
80         MyDataModel.hxx \
81         MyDataModel.cxx
82
83 TreeData_guitester_CPPFLAGS = \
84         $(COMMON_CPP_FLAGS)
85
86 TreeData_guitester_LDFLAGS = \
87         $(COMMON_LIBS)
88
89 TreeData_tester_SOURCES = \
90         tester.cxx \
91         MyDataModel.cxx
92
93 TreeData_tester_CPPFLAGS = \
94         $(COMMON_CPP_FLAGS)
95
96 TreeData_tester_LDFLAGS = \
97         $(COMMON_LIBS)
98
99 # test data files
100 testdir = $(salomeresdir)/testdata
101 test_DATA = \
102         data.txt
103
104 EXTRA_DIST+=$(test_DATA)