Commit Graph

14 Commits

Author SHA1 Message Date
Roland Kaufmann
e951358d0b Test for directory existence before getting canonical path 2013-02-11 22:38:00 +01:00
Roland Kaufmann
b2569225cd Allow location of TinyXML to be specified 2013-02-11 22:38:00 +01:00
Roland Kaufmann
989e38a68a Allow umfpack to be used as an alias for SuiteSparse
Most people will associate the use of SuiteSparse with "using UMFPACK"
since that is the component that is actively used.
2013-02-11 22:37:58 +01:00
Roland Kaufmann
ce73423ba4 Enable release mode from wrapper script
By using --disable-debug (--enable-debug is the default), release mode
can be toggled from the wrapper script.

Some IDEs, notably QtCreator requires this flag to be set when running
CMake, in order to enable debugging properly. Thus, it is explicitly
set (and printed) when using ./configure also.
2013-02-11 22:37:58 +01:00
Roland Kaufmann
3bac901afe Quote paths
Otherwise strange things will happen if they contain spaces
2013-02-11 22:37:57 +01:00
Roland Kaufmann
dcba0c32bd Assume that all paths to modules are directories
Old implementation had a problem with the special case that you
specified a directory directly under the root (e.g. /usr); dirname
adds a trailing slash in that case.
2013-02-11 22:37:57 +01:00
Roland Kaufmann
4eb1a07759 Display CMake command-line that is being executed
Since this is a compatibility script it will probably benefit people
seeing which underlaying CMake command is being executed (not at least
for debugging purposes)
2013-02-11 22:37:57 +01:00
Roland Kaufmann
10f8dfa390 Allow DUNE paths to be specified in configure
Path to DUNE libraries are specified with the ROOT prefix, but with the
stem with the same name as the module -- in lowercase (otherwise; does
the hyphen uppercase to underscore?). This deviates somewhat from the
usual CMake convention of using uppercase all over the place.
2013-02-11 22:37:57 +01:00
Roland Kaufmann
8b7990a8ea Remove tabs in shell script
Indentation by tab will cause a file listing for the current directory
before the command is executed, and that what not intended here.
2013-02-11 22:37:57 +01:00
Roland Kaufmann
34702606ca Make building libraries static or shared selectable
Default is still to make a shared object because this is the most
versatile target (it can be included in other shared objects as well
as executables).

Note that due to limitations in CMake, either a shared or a static
library can be built, but not both. (This is due to the fact that on
Windows, an import library has the same name as a static library).
2013-02-11 22:37:56 +01:00
Roland Kaufmann
06b17b9b21 Use full path to packages specified
CMake will change to the source directory when processing the
CMakeLists.txt file which causes relative paths to be based on this
instead of at the build directory which is probably assumed by the
user.
2013-02-11 22:37:56 +01:00
Roland Kaufmann
bce2199661 Allow to disable the inclusion of some libraries
Setting these options will cause these libraries to be dropped, even if
they can be found with automatic probes.
2013-02-11 22:37:56 +01:00
Roland Kaufmann
ed91d5be49 Dependencies' directories can be spec. on cmd. line
Instead of having to run `ccmake` or looking up which variables that
must be set, the configure driver is now enhanced to recognize options
that sets the installation directories for some of the dependencies.
2013-02-11 22:37:56 +01:00
Roland Kaufmann
0b4a244a44 Compatibility script for Autotools addicts
This script enables the use of `configure && make && make install` for
those users who have this combination ingrained in their fingers or are
too busy to read the manual.
2013-02-11 22:37:54 +01:00