Borderbasix

Installation of borderbasix with cmake

1.Configuration

To run the configuration, cmake (version at least 2.8) should be available on your platform.

Local installation. The package can be configured out-of-source (e.g. in a folder build) as follows:

cd build
cmake /path/to/package
make

where for instance package is borderbasix or bbx. The folder where the construction will be run is in this case build.

Global installation. If you want to install it globally in your environment after it is compiled, you can run the following instructions (possibly with the superuser rights):

cd build
cmake /path/to/package -DCMAKE_INSTALL_PREFIX=<install_dir>
make
make install

where <install_dir> is the folder where to install the package so that the libraries go in <install_dir>/lib; and the headers in <install_dir>/include. If not specified, the package is installed by default in /usr/local.

To see the operations performed during the make command, you can use:

make VERBOSE=1

2.How to set locally your environment variables

In case you have not run make install, you can set up your environment locally in the folder build with:

source /path/to/build/local_env

3.Using borderbasix

To use the package borderbasix in a cmake project, you can simply add the following lines in your file CMakeLists.txt:

find_package(Borderbasix)
include_directories (${BORDERBASIX_INCLUDE_DIR})
link_directories (${BORDERBASIX_LIBRARY_DIR})
link_libraries (${BORDERBASIX_LIBRARIES})

If you use a local version of borderbasix, you can configure your package (say another_package) as follows:

cmake /path/to/another_package -DBorderbasix_DIR=/path/to/build

Home  |  Download & InstallContributions