Please add some lines describing the project!
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=<installdir> [-Dkseta_documentation=ON] <path to sources>
make -j<number of cores on your machine>
make install
The kseta_documentation
variable is optional, and should be passed if you wish to
build the Doxygen based API documentation. Please note that this requires an existing
installation of Doxygen. If CMake cannot locate
Doxygen, its install location should be added into CMAKE_PREFIX_PATH
.
For further details please have a look at the CMake tutorial.
The documentation of the project is based on doxygen. To build the documentation,
the project must have been configured with kseta_documentation
enabled, as
described earlier. It can then be built and installed:
make doc
make install
By default, this installs the documentation into <installdir>/share/doc/HSFTEMPLATE/share/doc
.
A cpack based package can be created by invoking
make package
To run the tests of the project, first build it and then invoke
make test
If you want to build your own project against kseta, CMake may be the best option for you. Just add its location to CMAKE_PREFIX_PATH and call find_package(kseta) within your CMakeLists.txt.
A pkg-config
.pc
file is also installed if you do not use CMake.
Simply add the location of the .pc
file (nominally <installdir>/lib/pkgconfig
) and run pkg-config --cflags --libs HSFTEMPLATE
to get the
include paths and libraries needed to compile and link to HSFTEMPLATE.