]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STARLIGHT/starlight/CMakeLists.txt
e37dbe646cfdddbcc3a01e21e383490a95a3ac35
[u/mrichter/AliRoot.git] / STARLIGHT / starlight / CMakeLists.txt
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
17 set(MODULE StarLight)
18
19 # Module include folder
20 include_directories(${AliRoot_SOURCE_DIR}/STARLIGHT/starlight/include
21                     ${CMAKE_CURRENT_BINARY_DIR}
22 )
23
24 # Additional include folders in alphabetical order
25 include_directories(
26                    )
27
28 # Sources in alphabetical order
29 set(SRCS
30     src/beambeamsystem.cpp
31     src/beam.cpp
32     src/bessel.cpp
33     src/eventchannel.cpp
34     src/eventfilewriter.cpp
35     src/filewriter.cpp
36     src/gammaaluminosity.cpp
37     src/gammaavm.cpp
38     src/gammagammaleptonpair.cpp
39     src/gammagammasingle.cpp
40     src/incoherentPhotonNucleusLuminosity.cpp
41     src/incoherentVMCrossSection.cpp
42     src/inputParameters.cpp
43     src/inputParser.cpp
44     src/lorentzvector.cpp
45     src/narrowResonanceCrossSection.cpp
46     src/nBodyPhaseSpaceGen.cpp
47     src/nucleus.cpp
48     src/photonNucleusCrossSection.cpp
49     src/psifamily.cpp
50     src/randomgenerator.cpp
51     src/readinluminosity.cpp
52     src/starlight.cpp
53     src/starlightparticlecodes.cpp
54     src/starlightparticle.cpp
55     src/starlightStandalone.cpp
56     src/twophotonluminosity.cpp
57     src/upcevent.cpp
58     src/vector3.cpp
59     src/wideResonanceCrossSection.cpp
60    )
61
62 set(Starlight_VERSION_MAJOR 9999)
63 set(Starlight_VERSION_MINOR 1)
64 set(Starlight_VERSION_MINOR_MINOR 0)
65
66 configure_file(${AliRoot_SOURCE_DIR}/STARLIGHT/starlight/starlightconfig.h.in
67                starlightconfig.h
68               )
69
70 # Add a library to the project using the specified source files
71 add_library(${MODULE} SHARED ${SRCS})
72
73 # Additional compilation flags
74 set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g")
75
76 # System dependent: Modify the way the library is build
77 if(${CMAKE_SYSTEM} MATCHES Darwin)
78     set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
79 endif(${CMAKE_SYSTEM} MATCHES Darwin)
80
81 # Installation
82 install(TARGETS ${MODULE}
83         ARCHIVE DESTINATION lib
84         LIBRARY DESTINATION lib)
85
86 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/starlightconfig.h DESTINATION include)