#64 Add CMake + MinGW support

1.12.0
open
nobody
5
2009-07-29
2009-07-29
tanguy_k
No

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
ect...

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.

Discussion

  • tanguy_k
    tanguy_k
    2009-07-29

     
    Attachments