1 # **************************************************************************
2 # * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
4 # * Author: The ALICE Off-line Project. *
5 # * Contributors are mentioned in the code where appropriate. *
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 # **************************************************************************/
17 set (MODULE pythia8175)
19 # Module include folder
20 include_directories(${AliRoot_SOURCE_DIR}/PYTHIA8/${MODULE})
22 # Additional includes - alphabetical order except ROOT
23 include_directories(${ROOT_INCLUDE_DIR}
24 ${AliRoot_SOURCE_DIR}/PYTHIA8/${MODULE}/include
27 # Sources - alphabetical order
36 src/FragmentationFlavZpT.cxx
37 src/FragmentationSystems.cxx
40 src/HelicityBasics.cxx
41 src/HelicityMatrixElements.cxx
42 src/HiddenValleyFragmentation.cxx
48 src/MiniStringFragmentation.cxx
49 src/MultipartonInteractions.cxx
51 src/ParticleDecays.cxx
52 src/PartonDistributions.cxx
56 src/ProcessContainer.cxx
61 src/ResonanceDecays.cxx
62 src/ResonanceWidths.cxx
64 src/SigmaCompositeness.cxx
69 src/SigmaLeftRightSym.cxx
70 src/SigmaLeptoquark.cxx
71 src/SigmaNewGaugeBosons.cxx
79 src/StringFragmentation.cxx
81 src/SusyLesHouches.cxx
85 src/SusyResonanceWidths.cxx
88 # Headers generated from sources list
89 # NOTE: this is non-standard and requires two replaces
90 string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
91 string(REPLACE "src/" "include/" HDRS "${HDRS}")
93 # Additional headers, with no corresponding sources
94 list(APPEND HDRS "include/FastJet3.h"
95 "include/HepMCInterface.h"
96 "include/LHAFortran.h"
97 "include/LHAPDFInterface.h"
98 "include/PythiaComplex.h"
103 # Add a library to the project using the specified source files
104 add_library(${MODULE} SHARED ${SRCS})
106 # Do not generate the ROOT map
110 # Additional compilation flags
111 set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "")
112 target_link_libraries(${MODULE} )
114 # Linking the library
115 target_link_libraries(${MODULE} ${LIBDEPS})
117 # System dependent: Modify the way the library is build
118 if(${CMAKE_SYSTEM} MATCHES Darwin)
119 set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
120 endif(${CMAKE_SYSTEM} MATCHES Darwin)
123 install(TARGETS ${MODULE}
124 ARCHIVE DESTINATION lib
125 LIBRARY DESTINATION lib)
127 # Installation of headers
128 # NOTE: they will all go in the include/pythia subdirectory, and NOT in include
129 install(FILES ${HDRS} DESTINATION "include/pythia")