Code

Display CMS adjustment per-desktop view
[inkscape.git] / cxxtest / sample / msvc / Makefile
1 # Where to look for the tests
2 TESTS            = ..\gui\*.h ..\*.h
4 # Where the CxxTest distribution is unpacked
5 CXXTESTDIR       = ..\..
7 # Check CXXTESTDIR
8 !if !exist($(CXXTESTDIR)\cxxtestgen.pl)
9 !error Please fix CXXTESTDIR
10 !endif
12 # cxxtestgen needs Perl or Python
13 !if defined(PERL)
14 CXXTESTGEN       = $(PERL) $(CXXTESTDIR)/cxxtestgen.pl
15 !elseif defined(PYTHON)
16 CXXTESTGEN       = $(PYTHON) $(CXXTESTDIR)/cxxtestgen.py
17 !else
18 !error You must define PERL or PYTHON
19 !endif
21 # The arguments to pass to cxxtestgen
22 #  - ParenPrinter is the way MSVC likes its compilation errors
23 #  - --have-eh/--abort-on-fail are nice when you have them
24 CXXTESTGEN_FLAGS =        \
25         --gui=Win32Gui        \
26         --runner=ParenPrinter \
27         --have-eh             \
28         --abort-on-fail
30 # How to generate the test runner, `runner.cpp'
31 runner.cpp: $(TESTS)
32         $(CXXTESTGEN) $(CXXTESTGEN_FLAGS) -o $@ $(TESTS)
34 # How to run the tests, which should be in DIR\runner.exe
35 run: $(DIR)\runner.exe
36         $(DIR)\runner.exe