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 # **************************************************************************
19 # Module include folder
20 include_directories(${AliRoot_SOURCE_DIR}/STARLIGHT/starlight/include
21 ${CMAKE_CURRENT_BINARY_DIR}
24 # Additional include folders in alphabetical order
28 # Sources in alphabetical order
30 src/beambeamsystem.cpp
34 src/eventfilewriter.cpp
36 src/gammaaluminosity.cpp
38 src/gammagammaleptonpair.cpp
39 src/gammagammasingle.cpp
40 src/incoherentPhotonNucleusLuminosity.cpp
41 src/incoherentVMCrossSection.cpp
42 src/inputParameters.cpp
45 src/narrowResonanceCrossSection.cpp
46 src/nBodyPhaseSpaceGen.cpp
48 src/photonNucleusCrossSection.cpp
50 src/randomgenerator.cpp
51 src/readinluminosity.cpp
53 src/starlightparticlecodes.cpp
54 src/starlightparticle.cpp
55 src/starlightStandalone.cpp
56 src/twophotonluminosity.cpp
59 src/wideResonanceCrossSection.cpp
62 set(Starlight_VERSION_MAJOR 9999)
63 set(Starlight_VERSION_MINOR 1)
64 set(Starlight_VERSION_MINOR_MINOR 0)
66 configure_file(${AliRoot_SOURCE_DIR}/STARLIGHT/starlight/starlightconfig.h.in
70 # Add a library to the project using the specified source files
71 add_library(${MODULE} SHARED ${SRCS})
73 # Additional compilation flags
74 set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "")
77 target_link_libraries(${MODULE} ${LIBDEPS})
79 # System dependent: Modify the way the library is build
80 if(${CMAKE_SYSTEM} MATCHES Darwin)
81 set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
82 endif(${CMAKE_SYSTEM} MATCHES Darwin)
85 install(TARGETS ${MODULE}
86 ARCHIVE DESTINATION lib
87 LIBRARY DESTINATION lib)
89 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/starlightconfig.h DESTINATION include)