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_DIRS}
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}")
95 # Add a library to the project using the specified source files
96 add_library(${MODULE} SHARED ${SRCS})
98 # Do not generate the ROOT map
102 # Additional compilation flags
103 set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "")
104 target_link_libraries(${MODULE} )
106 # Linking the library
107 target_link_libraries(${MODULE} ${LIBDEPS})
109 # System dependent: Modify the way the library is build
110 if(${CMAKE_SYSTEM} MATCHES Darwin)
111 set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
112 endif(${CMAKE_SYSTEM} MATCHES Darwin)
115 install(TARGETS ${MODULE}
116 ARCHIVE DESTINATION lib
117 LIBRARY DESTINATION lib)
119 # Installation of headers
120 # NOTE: they will all go in the include/pythia subdirectory, and NOT in include
121 install(FILES ${HDRS} DESTINATION "include/pythia")