/
niceSOFT
/
check
ОбзорДокументацияВойти
/
niceSOFT
/
check
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
ДокументацияПоддержка
Политика конфиденциальностиПользовательское соглашениеПолитика использования «cookies»Согласие субъекта персональных данных
2026 ©
check/
doc/example/
..
cmake

Rename CMake project from 'check' to 'Check'

7 лет назад
src

Add LGPL header to files without the header

11 лет назад
tests

Link the library directory so tests can be compiled on OSX

9 лет назад
CMakeLists.txt

Add BSD license for example CMakeLists

9 лет назад
Makefile.am

* Rewrite Makefiles to accomodate new example structure

20 лет назад
README

example: update docs to mention CHECK_INSTALL_DIR var

13 лет назад
configure.ac

remove AC_CONFIG_AUX_DIR in example

10 лет назад
README
This is the "money example" from the Check tutorial.
 
This demonstrates using Check along with one of two build systems:
autotools and CMake.
 
========================
Autotools:
 
You need the following programs installed on your system:
-- Autoconf 2.59
-- Automake 1.9.6
-- Libtool 1.5.22
-- Check 0.9.9
 
Somewhat earlier versions of these programs might work.
 
Then, do as follows:
 
$ autoreconf --install
$ ./configure
$ make
$ make check
 
Don't do "make install" unless you want to install the money example.
 
money.c and money.h are built as a library. src/main.c:main() is a
client of libmoney.la, just as tests/check_money.c:main() is a client
of libmoney.la
 
To use the autotools example in another project, start with the following
files:
 
example
|--- configure.ac
|--- Makefile.am
|--- src
| |--- Makefile.am
|--- tests
|--- Makefile.am
 
Please send bug reports to check-devel AT lists.sourceforge.net.
 
========================
CMake:
 
You need the following programs installed on your system:
-- CMake 2.8
-- Check 0.9.9
-- (pkg-config 0.26 is optional)
 
Somewhat earlier versions of these programs might work.
 
NOTE: If pkg-config is not installed on the system, and MSVC is being used,
the install location of Check must be inserted manually into the
tests/CMakeLists.txt file, by setting the variable CHECK_INSTALL_DIR
to the install location. Look at the tests/CMakeLists.txt file for
a commented out example.
 
Then, do as follows for a Unix-compatible shell:
 
$ cmake .
$ make
$ make test
 
or the following for MSVC:
 
$ cmake -G "NMake Makefiles" .
$ nmake
$ nmake test
 
Don't do "make install" or "nmake install" unless you want to install the money example.
 
money.c and money.h are built as a library. src/main.c:main() is a
client of libmoney.la, just as tests/check_money.c:main() is a client
of libmoney.la
 
To use the CMake example in another project, start with the following files:
 
example
|--- CMakeFiles.txt
|--- cmake
| |--- config.h.in
| |--- FindCheck.cmake
|--- src
| |--- CMakeFiles.txt
|--- tests
|--- CMakeFiles.txt
 
Please send bug reports to check-devel AT lists.sourceforge.net.