This is a patch that adds CMake support to CppUnit.
CMake allows me to easily build CppUnit under Linux/GCC, Windows/MinGW
and Windows/MSVC (tested successfully under these platforms)
So it adds MinGW support to CppUnit which was laking in previous releases.
How it works?
Go inside the build directory and run from a command prompt one of the script.
For example build_mingw-debug.bat will compile CppUnit in debug mode under MinGW
build_nmake-minsizerel.bat will compile CppUnit in "Minimum size
release" using MSVC (Visual C++)
build_projectmsvc90-debug.bat will create a .sln solution/project for Visual C++
build_make-release.sh will compile CppUnit under UNIX using make
Everything is done inside the unique CMakeLists.txt.
It only compiles the library CppUnit, not the examples and other things.
If you read the CMakeLists.txt you will see that it supports the
"configure" step by performing some tests about headers, libraries and
functions present on the system.
A special config/config.h.cmake matching config/config.h.in has been
created specially for CMake.
Log in to post a comment.