CMakeLists.txt 2.11 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#--- Tests for continuous builds
add_subdirectory(run)
add_subdirectory(mcbm)
add_subdirectory(mvd)
add_subdirectory(much)
add_subdirectory(tof)
add_subdirectory(beamtime)
add_subdirectory(include)
 

#--- Additional tests for nightly builds
If($ENV{ctest_model} MATCHES Nightly)
  add_subdirectory(field)
  add_subdirectory(C2F)
  add_subdirectory(dimuon)
  Message("Additional Nightly tests")
EndIf($ENV{ctest_model}  MATCHES Nightly)

#--- Additional tests for weekly builds
If($ENV{ctest_model} MATCHES Weekly)
  add_subdirectory(KF)
  add_subdirectory(field)
  add_subdirectory(C2F)
  add_subdirectory(dimuon)
  Message("Additional long running Weekly tests")
EndIf()

28
29
30
31
# 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)

32

33
34
35
36
37
38
39
# Install in any case
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)")

40
41
42
43
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
44
              ${CBMROOT_SOURCE_DIR}/macro/analysis/common/cuts/cbm_cuts.h
45
46
47
48
49
50
51
52
53
54
        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)")

55
56
57
58
#--- Deprecated (not running)
#add_subdirectory(trd)
#add_subdirectory(littrack)