jpp_add_library(JTrigger SOURCES JTriggerParameters.cc PUBLIC_LINK_LIBRARIES km3net::JROOT km3net::dataformat ROOT_DICTIONARY JPMTIdentifier_t.hh JPMTSelector.hh JPrescaler.hh JTrigger3DMuon_t.hh JTrigger3DShower_t.hh JTriggerMXShower_t.hh JTriggerNB_t.hh JTriggerParameters.hh ) # FIXME: (see below) should we split as much the creation of the executable ? # it's nice to be aware of the dependencies but makes the CMakeLists.txt # a bit less readable maybe ? # to be decided. # exe that depends only on JTrigger foreach(exe JChecksum JPrintTriggerBits JPrintTriggerParameters JTriggerMonitor ) jpp_add_executable(${exe} SOURCES ${exe}.cc LINK_LIBRARIES km3net::JTrigger km3net::Jeep) endforeach() # exe that depend on JTrigger, JDetector foreach(exe JTriggerReprocessor JTurbot ) jpp_add_executable(${exe} SOURCES ${exe}.cc LINK_LIBRARIES km3net::JDetector km3net::JTrigger km3net::Jeep) endforeach() # exe that depend on JTrigger, JDetector, ROOT::EG (for TDatabasePDG ?) foreach(exe JTimesliceReprocessor ) jpp_add_executable(${exe} SOURCES ${exe}.cc LINK_LIBRARIES km3net::JDetector km3net::JTrigger ROOT::EG km3net::JAAnet km3net::Jeep) endforeach() # exe that depend on JTrigger, JDetector, JAAnet foreach(exe JTriggerEfficiency JTriggerProcessor JTriggerTester ) jpp_add_executable(${exe} SOURCES ${exe}.cc LINK_LIBRARIES km3net::JAAnet km3net::JDetector km3net::JTrigger ROOT::EG km3net::Jeep) endforeach() jpp_auto_add_scripts()