CMakeLists.txt 2.07 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
message("${BoldYellow}----------------------------")
message("Preparing Analysis libraries...")
message("----------------------------${ColourReset}")

include_directories(${CMAKE_SOURCE_DIR})
include_directories(${CMAKE_SOURCE_DIR}/Analysis/include)

#In the following the list of source files to be linked
set (ANALYSIS_SRC_DIR "${CMAKE_SOURCE_DIR}/Analysis/src")

#### Get all header files
FILE(GLOB_RECURSE PA_INC
    "${CMAKE_SOURCE_DIR}/Analysis/include/*.hh"
)
15
16
17
18
FILE(GLOB_RECURSE DEPENDENCIES
    "${CMAKE_SOURCE_DIR}/Analysis/include/*.hh"
    "${CMAKE_SOURCE_DIR}/Analysis/src/*.cpp"
)
19
 
20
add_executable(AnalysisExample ${DEPENDENCIES} userFunctions/AnalysisExample.cpp)
21
TARGET_LINK_LIBRARIES(AnalysisExample ${ROOT_LIBRARIES})
22
23
TARGET_LINK_LIBRARIES(AnalysisExample ${XERCESC_LIBRARY})

24
25
install(TARGETS AnalysisExample RUNTIME DESTINATION bin)

26
27
28
29
30
31
32
33
34
35
36
37
38

add_executable(myAnalysis ${DEPENDENCIES} userFunctions/myAnalysis.cpp)
TARGET_LINK_LIBRARIES(myAnalysis ${ROOT_LIBRARIES})
TARGET_LINK_LIBRARIES(myAnalysis ${XERCESC_LIBRARY})

install(TARGETS myAnalysis RUNTIME DESTINATION bin)


add_executable(postAnalysis ${DEPENDENCIES} userFunctions/postAnalysis.cpp)
TARGET_LINK_LIBRARIES(postAnalysis ${ROOT_LIBRARIES})
TARGET_LINK_LIBRARIES(postAnalysis ${XERCESC_LIBRARY})

install(TARGETS postAnalysis RUNTIME DESTINATION bin)
39

40
41
42
#add_executable(postAnalysisZDC ${DEPENDENCIES} userFunctions/postAnalysisZDC.cpp)
#TARGET_LINK_LIBRARIES(postAnalysisZDC ${ROOT_LIBRARIES})
#TARGET_LINK_LIBRARIES(postAnalysisZDC ${XERCESC_LIBRARY})
43

44
#install(TARGETS postAnalysisZDC RUNTIME DESTINATION bin)
45

46
47
48
#add_executable(postAnalysisRPD ${DEPENDENCIES} userFunctions/postAnalysisRPD.cpp)
#TARGET_LINK_LIBRARIES(postAnalysisRPD ${ROOT_LIBRARIES})
#TARGET_LINK_LIBRARIES(postAnalysisRPD ${XERCESC_LIBRARY})
49

50
#install(TARGETS postAnalysisRPD RUNTIME DESTINATION bin)
51
52
53
54
55
56

add_executable(RPD_Matrix_Analysis ${DEPENDENCIES} userFunctions/RPD_Matrix_Analysis.cpp)
TARGET_LINK_LIBRARIES(RPD_Matrix_Analysis ${ROOT_LIBRARIES})
TARGET_LINK_LIBRARIES(RPD_Matrix_Analysis ${XERCESC_LIBRARY})

install(TARGETS RPD_Matrix_Analysis RUNTIME DESTINATION bin)