This is the minimal amount of work to not break anything. To make this actually useful the tests and examples should not include src or PROJECT_BINARY_DIR which serves as a test that the public header is self contained
For this the CMake files need to be split (see #69) and separate configs should be created which contain only what the tests/examples need. Some things can be removed, e.g. HAVE_STDBOOL_H is assumed to be defined as otherwise true, false and bool are not available and the build would break.
Note: Mixing automake and cmake for testing doesn't work because automake pollutes the source folder with e.g. the generated config.h which will then be picked up when building with cmake and as it is explicitly ignored it doesn't show up in git status (one of the reasons I'd remove the autotools based build)
Extracted from #69
This is the minimal amount of work to not break anything. To make this actually useful the tests and examples should not include src or PROJECT_BINARY_DIR which serves as a test that the public header is self contained For this the CMake files need to be split (see #69) and separate configs should be created which contain only what the tests/examples need. Some things can be removed, e.g.
HAVE_STDBOOL_H
is assumed to be defined as otherwisetrue
,false
andbool
are not available and the build would break.Note: Mixing automake and cmake for testing doesn't work because automake pollutes the source folder with e.g. the generated config.h which will then be picked up when building with cmake and as it is explicitly ignored it doesn't show up in
git status
(one of the reasons I'd remove the autotools based build)