• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

cmake/H03-May-2022-8369

src/H03-May-2022-433172

tests/H03-May-2022-443242

Makefile.amH A D21-Jun-202080 31

READMEH A D21-Jun-20202.2 KiB9065

configure.acH A D21-Jun-2020868 4128

README

1This is the "money example" from the Check tutorial.
2
3This demonstrates using Check along with one of two build systems:
4autotools and CMake.
5
6========================
7Autotools:
8
9You need the following programs installed on your system:
10  -- Autoconf 2.59
11  -- Automake 1.9.6
12  -- Libtool 1.5.22
13  -- Check 0.9.9
14
15Somewhat earlier versions of these programs might work.
16
17Then, do as follows:
18
19$ autoreconf --install
20$ ./configure
21$ make
22$ make check
23
24Don't do "make install" unless you want to install the money example.
25
26money.c and money.h are built as a library.  src/main.c:main() is a
27client of libmoney.la, just as tests/check_money.c:main() is a client
28of libmoney.la
29
30To use the autotools example in another project, start with the following
31files:
32
33   example
34   |--- configure.ac
35   |--- Makefile.am
36   |--- src
37   |    |--- Makefile.am
38   |--- tests
39        |--- Makefile.am
40
41Please send bug reports to check-devel AT lists.sourceforge.net.
42
43========================
44CMake:
45
46You need the following programs installed on your system:
47  -- CMake 2.8
48  -- Check 0.9.9
49  -- (pkg-config 0.26 is optional)
50
51Somewhat earlier versions of these programs might work.
52
53NOTE: If pkg-config is not installed on the system, and MSVC is being used,
54the install location of Check must be inserted manually into the
55tests/CMakeLists.txt file, by setting the variable CHECK_INSTALL_DIR
56to the install location. Look at the tests/CMakeLists.txt file for
57a commented out example.
58
59Then, do as follows for a Unix-compatible shell:
60
61$ cmake .
62$ make
63$ make test
64
65or the following for MSVC:
66
67$ cmake -G "NMake Makefiles" .
68$ nmake
69$ nmake test
70
71Don't do "make install" or "nmake install" unless you want to install the money example.
72
73money.c and money.h are built as a library.  src/main.c:main() is a
74client of libmoney.la, just as tests/check_money.c:main() is a client
75of libmoney.la
76
77To use the CMake example in another project, start with the following files:
78
79   example
80   |--- CMakeFiles.txt
81   |--- cmake
82   |    |--- config.h.in
83   |    |--- FindCheck.cmake
84   |--- src
85   |    |--- CMakeFiles.txt
86   |--- tests
87        |--- CMakeFiles.txt
88
89Please send bug reports to check-devel AT lists.sourceforge.net.
90