CMakeLists.txt 2.27 KB
Newer Older
1
2
3
4
5
6
#--- Tests for continuous builds
add_subdirectory(run)
add_subdirectory(mcbm)
add_subdirectory(mvd)
add_subdirectory(much)
add_subdirectory(include)
7
8
9
if (${CMAKE_CXX_STANDARD} EQUAL 17)
  add_subdirectory (reco)
endif()
10
11

#--- Additional tests for nightly builds
12
If(NOT ${CBM_TEST_MODEL} MATCHES Experimental)
13
14
15
16
  add_subdirectory(field)
  add_subdirectory(C2F)
  add_subdirectory(dimuon)
  Message("Additional Nightly tests")
17
EndIf()
18
19

#--- Additional tests for weekly builds
20
If(${CBM_TEST_MODEL} MATCHES Weekly)
21
22
23
24
  add_subdirectory(KF)
  Message("Additional long running Weekly tests")
EndIf()

25
26
27
28
# Test if all libraries can be loaded
GENERATE_TEST_SCRIPT(${CBMROOT_SOURCE_DIR}/scripts/checklibs.sh ${CBMROOT_BINARY_DIR}/macro/)
add_test(load_libraries ${CBMROOT_BINARY_DIR}/macro/checklibs.sh)

29

30
# Install in any case
31
32
33
34
35
36
37
Install(PROGRAMS ${CBMROOT_SOURCE_DIR}/scripts/checklibs.sh
        DESTINATION share/cbmroot/macro/
       )
Install(FILES ${CBMROOT_SOURCE_DIR}/scripts/loadlib.C
        DESTINATION share/cbmroot/macro/
       )

38
39
40
41
42
43
Install(FILES KF/DecayConfig.C KF/registerGeantDecays.C KF/registerLightIons.C KF/registerPythiaDecays.C
              KF/kf_kfparticle.C KF/kf_thermal_signal_generator.C  KF/kf_transport.C
        DESTINATION share/cbmroot/macro/KF
       )
Install(CODE "FILE(MAKE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/share/cbmroot/macro/KF/data)")

44
45
46
47
Install(FILES C2F/.rootrc C2F/c2f_transport.C C2F/sis100_electron.tree.list
              ${CBMROOT_SOURCE_DIR}/macro/analysis/common/analysis_tree_converter/run_analysis_tree_maker.C
              ${CBMROOT_SOURCE_DIR}/macro/analysis/common/at_kfpf_interface/run_at_kfpf.C
              ${CBMROOT_SOURCE_DIR}/macro/analysis/common/qa/run_analysistree_qa.C
48
              ${CBMROOT_SOURCE_DIR}/macro/analysis/common/cuts/cbm_cuts.h
49
50
51
52
53
54
55
56
57
58
        DESTINATION share/cbmroot/macro/c2f
       )
Install(CODE "FILE(MAKE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/share/cbmroot/macro/c2f/data)")

Install(FILES dimuon/.rootrc dimuon/dimuon_transport.C dimuon/invM.C
              ${CBMROOT_SOURCE_DIR}/macro/much/run_ana.C
        DESTINATION share/cbmroot/macro/dimuon
       )
Install(CODE "FILE(MAKE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/share/cbmroot/macro/dimuon/data)")

59
60
61
#--- Deprecated (not running)
#add_subdirectory(trd)
#add_subdirectory(littrack)
62
#add_subdirectory(beamtime)