Skip to content
Jung Woo edited this page Jun 29, 2023 · 3 revisions

For building lilak, run configure.py and follow the instructions!

> ./configure.sh

Build options

Below are the options one can chose from running configure.py

  • ACTIVATE_EVE : Activate Root EVE package if it is compiled with ROOT. This is needed for 3d event display.
  • BUILD_GEANT4_SIM : Build Geant4 simulation
  • BUILD_MFM_CONVERTER : -
  • BUILD_JSONCPP : Build jsoncpp

Looking for project

Except for the top directories of lilak, configure.py look for directories which contains any of following sub-directories: task, detector, container, tool. These project directories may be added from configure.py.

What happens after project is added

If the project is decided to be added,

  1. CMakeLists.txt for the project will created.
  2. LinkDef.h files for task, detector, container, tool directories are created.
  3. c++ macro that has file extension of .cc in macros directory, added to create executable.
  4. Source files in source, geant4, get, fftw will be used only for creating executables.

CMake build

If environment variable LILAK_PATH is set already, configure.py runs cmake and make from the build directory. If not, set LILAK_PATH and rerun configure.py. One may just use cmake and make from the build directory, however, configure.py should be called every time new files are added to the library.