-
Notifications
You must be signed in to change notification settings - Fork 2
Building EvioTool
Maurik Holtrop edited this page Jan 6, 2021
·
3 revisions
This tool uses a standard "cmake" build scheme. This includes a build of needed the EVIO and ET libraries.
Steps:
- git clone https://github.com/JeffersonLab/EvioTool.git
- cd EvioTool
- mkdir build # Always use out-of-place build.
- cd build
- cmake -DCMAKE_INSTALL_PREFIX=${HOME} .. # Replace ${HOME} with install dir.
- make
- make install
The libraries currently created are:
- libevio
- libeviocxx is no longer build, but can be turned on if you want. Edit the CMakeLists.txt.
- libEvioTool
- libHPSEvioReader
The executatble created are, amongst others:
- EvioTool_Test
- HPSEvioReader_Test
- HPS_Trigger_Filter
- evio2xml
- eviocopy
By default a cmake install will put two packages in /lib/cmake, one for evio and one for both EvioTool and HPSEvioReader. To link to these pacakges in your own CMakeLists.txt file you want to include the following lines:
find_package(ROOT REQUIRED)
include(${ROOT_USE_FILE})
find_package(EvioTool CONFIG REQUIRED)
To make sure that cmake finds the packages when you run it on your own project, add CMAKE_PREFIX_PATH to point to your installation of EvioTool:
cmake -DCMAKE_PREFIX_PATH=<install-dir>/lib/cmake ..