]> git.uio.no Git - u/mrichter/AliRoot.git/blame - CORRFW/CMakeLists.txt
EMCAL/DCAL Trigger Mapping for Run 2
[u/mrichter/AliRoot.git] / CORRFW / CMakeLists.txt
CommitLineData
a4ec6532 1# **************************************************************************
2# * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
3# * *
4# * Author: The ALICE Off-line Project. *
5# * Contributors are mentioned in the code where appropriate. *
6# * *
7# * Permission to use, copy, modify and distribute this software and its *
8# * documentation strictly for non-commercial purposes is hereby granted *
9# * without fee, provided that the above copyright notice appears in all *
10# * copies and that both the copyright notice and this permission notice *
11# * appear in the supporting documentation. The authors make no claims *
12# * about the suitability of this software for any purpose. It is *
13# * provided "as is" without express or implied warranty. *
14# **************************************************************************
6d839a5c 15
a4ec6532 16# Module
17set(MODULE CORRFW)
6d839a5c 18
a4ec6532 19# Module include folder
427d561c 20include_directories(${AliRoot_SOURCE_DIR}/${MODULE})
6d839a5c 21
a4ec6532 22# Additional include folders in alphabetical order except ROOT
23include_directories(${ROOT_INCLUDE_DIRS}
427d561c 24 ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSISalice
25 ${AliRoot_SOURCE_DIR}/STEER/AOD
26 ${AliRoot_SOURCE_DIR}/STEER/ESD
27 ${AliRoot_SOURCE_DIR}/STEER/STEERBase
a4ec6532 28 )
29
30# Sources in alphabetical order
31set(SRCS
32 AliCFAcceptanceCuts.cxx
33 AliCFContainer.cxx
34 AliCFCutBase.cxx
35 AliCFDataGrid.cxx
36 AliCFEffGrid.cxx
37 AliCFEventClassCuts.cxx
38 AliCFEventGenCuts.cxx
39 AliCFEventRecCuts.cxx
40 AliCFFrame.cxx
41 AliCFGridSparse.cxx
42 AliCFManager.cxx
43 AliCFPairAcceptanceCuts.cxx
44 AliCFPair.cxx
45 AliCFPairIsPrimaryCuts.cxx
46 AliCFPairPidCut.cxx
47 AliCFPairQualityCuts.cxx
48 AliCFParticleGenCuts.cxx
49 AliCFTrackCutPid.cxx
50 AliCFTrackIsPrimaryCuts.cxx
51 AliCFTrackKineCuts.cxx
52 AliCFTrackQualityCuts.cxx
53 AliCFUnfolding.cxx
54 AliCFV0TopoCuts.cxx
55 )
56
57# Headers from sources
58string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
59
60# Generate the dictionary
61# It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument
62get_directory_property(incdirs INCLUDE_DIRECTORIES)
63generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
64
65# Generate the ROOT map
66# Dependecies
67set(LIBDEPS STEERBase AOD ESD ANALYSISalice Foam)
68generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
69
70# Add a library to the project using the specified source files
71add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx)
72
73# Additional compilation flags
68aeb13b 74set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "")
a4ec6532 75
4d31eb1c 76if(ROOT_HASALIEN)
a4ec6532 77 add_definitions(-DWITHALIEN)
78endif()
79
4d31eb1c 80if(ROOT_HASXML)
a4ec6532 81 add_definitions(-DWITHXML)
82endif()
83
2a1514aa 84# Linking the library
85target_link_libraries(${MODULE} ${LIBDEPS})
86
a4ec6532 87# System dependent: Modify the way the library is build
88if(${CMAKE_SYSTEM} MATCHES Darwin)
89 set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
90endif(${CMAKE_SYSTEM} MATCHES Darwin)
91
92# Installation
93install(TARGETS ${MODULE}
94 ARCHIVE DESTINATION lib
95 LIBRARY DESTINATION lib)
96
97install(FILES ${HDRS} DESTINATION include)