]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PYTHIA8/pythia8175/CMakeLists.txt
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / PYTHIA8 / pythia8175 / CMakeLists.txt
CommitLineData
a31c2f7d 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# **************************************************************************/
15
16#Module
17set (MODULE pythia8175)
18
19# Module include folder
20include_directories(${AliRoot_SOURCE_DIR}/PYTHIA8/${MODULE})
21
22# Additional includes - alphabetical order except ROOT
23include_directories(${ROOT_INCLUDE_DIRS}
24 ${AliRoot_SOURCE_DIR}/PYTHIA8/${MODULE}/include
25 )
26
27# Sources - alphabetical order
28set(SRCS
29 src/Analysis.cxx
30 src/Basics.cxx
31 src/BeamParticle.cxx
32 src/BeamRemnants.cxx
33 src/BeamShape.cxx
34 src/BoseEinstein.cxx
35 src/Event.cxx
36 src/FragmentationFlavZpT.cxx
37 src/FragmentationSystems.cxx
38 src/HadronLevel.cxx
39 src/HadronScatter.cxx
40 src/HelicityBasics.cxx
41 src/HelicityMatrixElements.cxx
42 src/HiddenValleyFragmentation.cxx
43 src/History.cxx
44 src/Info.cxx
45 src/LesHouches.cxx
6f2765e2 46 src/Merging.cxx
a31c2f7d 47 src/MergingHooks.cxx
48 src/MiniStringFragmentation.cxx
49 src/MultipartonInteractions.cxx
50 src/ParticleData.cxx
51 src/ParticleDecays.cxx
52 src/PartonDistributions.cxx
53 src/PartonLevel.cxx
54 src/PartonSystems.cxx
55 src/PhaseSpace.cxx
56 src/ProcessContainer.cxx
57 src/ProcessLevel.cxx
58 src/Pythia.cxx
59 src/PythiaStdlib.cxx
60 src/RHadrons.cxx
61 src/ResonanceDecays.cxx
62 src/ResonanceWidths.cxx
63 src/Settings.cxx
64 src/SigmaCompositeness.cxx
65 src/SigmaEW.cxx
66 src/SigmaExtraDim.cxx
67 src/SigmaGeneric.cxx
68 src/SigmaHiggs.cxx
69 src/SigmaLeftRightSym.cxx
70 src/SigmaLeptoquark.cxx
71 src/SigmaNewGaugeBosons.cxx
72 src/SigmaOnia.cxx
73 src/SigmaProcess.cxx
74 src/SigmaQCD.cxx
75 src/SigmaSUSY.cxx
76 src/SigmaTotal.cxx
77 src/SpaceShower.cxx
78 src/StandardModel.cxx
79 src/StringFragmentation.cxx
80 src/SusyCouplings.cxx
81 src/SusyLesHouches.cxx
82 src/TimeShower.cxx
83 src/TauDecays.cxx
84 src/UserHooks.cxx
85 src/SusyResonanceWidths.cxx
86 )
87
88# No dictionary
89
90# Add a library to the project using the specified source files
91add_library(${MODULE} SHARED ${SRCS})
92
93# Do not generate the ROOT map
6f2765e2 94# Dependencies
95set(LIBDEPS lhapdf)
a31c2f7d 96
97# Additional compilation flags
68aeb13b 98set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "")
a31c2f7d 99target_link_libraries(${MODULE} )
100
6f2765e2 101# Linking the library
102target_link_libraries(${MODULE} ${LIBDEPS})
103
a31c2f7d 104# System dependent: Modify the way the library is build
105if(${CMAKE_SYSTEM} MATCHES Darwin)
106 set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
107endif(${CMAKE_SYSTEM} MATCHES Darwin)
108
109# Installation
110install(TARGETS ${MODULE}
111 ARCHIVE DESTINATION lib
112 LIBRARY DESTINATION lib)
113install(FILES ${HDRS} DESTINATION include)