iwjd / muparser

Automatically exported from code.google.com/p/muparser
Other
0 stars 0 forks source link

switch to cmake build system #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

Here's a CMake file that allows to build muparser with cmake in a 
cross-platform manner.

Basically removes the need for specific build systems on each platforms (almost 
everything in /build): configure, bakefiles (build/bakefiles), mingw specific 
makefile (makefile.mingw), and msvc projects 
(./build/msvc2013/muparser*.vcxproj)

Usage:
cd [path to muParser]
cmake [-DBUILD_SHARED_LIBS=ON/OFF] [-DBUILD_SAMPLES=ON/PFF]
             [-DCMAKE_BUILD_TYPE=Release/Debug]
make
[sudo*] make install

Also builds tarballs muparser-2.2.4.zip|tar.gz:
make package_source

Has in it almost all that is needed to solve #3. We should then create a 
muParserDef.h.in file to be configured with the conditional definition of 
MUP_USE_OPENMP. Then cmake can take advantage of arguments 
[-DUSE_OPENMP=ON/OFF]. See comments inside.

Tested on linux, mingw-w64, should build on msvc too.

Would you consider this as a build-system replacement ?

Original issue reported on code.google.com by julien.s...@gmail.com on 25 Feb 2015 at 4:50

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Note that it would potentially help solve #5, although not tested.

Original comment by julien.s...@gmail.com on 25 Feb 2015 at 5:23

GoogleCodeExporter commented 9 years ago
I'll investigate this but switching the build system is a big step and i need 
to make sure everything works. I'm pushing this back on the timeline due to not 
having much time right now

Original comment by ib...@gmx.info on 26 Apr 2015 at 11:08