Download latest version of the MDSTk from the
SourceForge.net
and unpack it somewhere.
If you don't have CMake installed on your system let's do it now.
Where appropriate, download the package of prebuilt required 3rd party libraries
and unpack it into the '3rdParty' directory.
Under Linux use the 'cmake' or 'ccmake' utilities from a build directory
different from the source directory. Advantage of such out-of-source build
is that temporary files created by CMake and compiler won't disturb the source
directory. Also, it makes possible to have multiple independent build targets
by creating multiple build directories.
> cd MDSTk
> mkdir build
> cd build
> ccmake ..
> make
All executables will be placed in the 'build/bin' directory and all
compiled libraries in the 'build/lib' directory.
If you want to build debug versions of libraries and binaries, modify
the CMake variable 'CMAKE_BUILD_TYPE'.
> ccmake .. -DCMAKE_BUILD_TYPE=Debug
Under Windows use the utility 'CMakeSetup' (or 'cmake-gui'
recently) to generate project and solution
files for your MS Visual Studio. Open the solution 'MDSTk.sln' which
will be placed in the build directory and compile all libraries first.
Afterwards, choose and compile required modules (optionaly TESTs
and documentation).
Alternatively, you can use the same 'CMakeSetup' to generate Makefiles
for MinGW and MSYS. In the next step, the 'make' utility is called from
the build directory as mentioned above.
|