Debian Codegraph @

sample/msvc/Makefile

raw symbols SCIP
1 # Where to look for the tests
2 TESTS = ..\gui\*.h ..\*.h
3
4 # Where the CxxTest distribution is unpacked
5 CXXTESTDIR = ..\..
6
7 # Check CXXTESTDIR
8 !if !exist($(CXXTESTDIR)\bin\cxxtestgen)
9 !error Please fix CXXTESTDIR
10 !endif
11
12 # cxxtestgen needs Perl or Python
13 !if defined(PYTHON)
14 CXXTESTGEN = $(PYTHON) $(CXXTESTDIR)/bin/cxxtestgen
15 !else
16 !error You must define PERL or PYTHON
17 !endif
18
19 # The arguments to pass to cxxtestgen
20 # - ParenPrinter is the way MSVC likes its compilation errors
21 # - --have-eh/--abort-on-fail are nice when you have them
22 CXXTESTGEN_FLAGS = \
23 --gui=Win32Gui \
24 --runner=ParenPrinter \
25 --have-eh \
26 --abort-on-fail
27
28 # How to generate the test runner, `runner.cpp'
29 runner.cpp: $(TESTS)
30 $(CXXTESTGEN) $(CXXTESTGEN_FLAGS) -o $@ $(TESTS)
31
32 # How to run the tests, which should be in DIR\runner.exe
33 run: $(DIR)\runner.exe
34 $(DIR)\runner.exe