Converting PWG/TRD to native cmake
[u/mrichter/AliRoot.git] / STARLIGHT / starlight / CMakeLists.txt
CommitLineData
a61a4805 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 StarLight)
18
19# Module include folder
20include_directories(${AliRoot_SOURCE_DIR}/STARLIGHT/starlight/include
21 ${CMAKE_CURRENT_BINARY_DIR}
22)
23
24# Additional include folders in alphabetical order
25include_directories(
26 )
27
28# Sources in alphabetical order
29set(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
62set(Starlight_VERSION_MAJOR 9999)
63set(Starlight_VERSION_MINOR 1)
64set(Starlight_VERSION_MINOR_MINOR 0)
65
66configure_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
71add_library(${MODULE} SHARED ${SRCS})
72
73# Additional compilation flags
68aeb13b 74set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "")
a61a4805 75
6f2765e2 76# Linking the library
77target_link_libraries(${MODULE} ${LIBDEPS})
78
a61a4805 79# System dependent: Modify the way the library is build
80if(${CMAKE_SYSTEM} MATCHES Darwin)
81 set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
82endif(${CMAKE_SYSTEM} MATCHES Darwin)
83
84# Installation
85install(TARGETS ${MODULE}
86 ARCHIVE DESTINATION lib
87 LIBRARY DESTINATION lib)
88
89install(FILES ${CMAKE_CURRENT_BINARY_DIR}/starlightconfig.h DESTINATION include)