56b45b53f7c86709c8fef6454f1b3e9700b33b4e
[u/mrichter/AliRoot.git] / TEvtGen / Tauola / 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 Tauola)
18
19 # Module include folder
20 include_directories(${AliRoot_SOURCE_DIR}/TEvtGen/${MODULE})
21
22 # Additional includes - alphabetical order except ROOT
23 include_directories(${ROOT_INCLUDE_DIRS}
24                     ${AliRoot_SOURCE_DIR}/TEvtGen
25 )
26
27 # Sources - alphabetical order
28 set(SRCS
29   DecayList.cxx
30   TauolaLog.cxx
31   Plots.cxx
32   Tauola.cxx
33   TauolaEvent.cxx
34   TauolaHEPEVTEvent.cxx
35   TauolaHEPEVTParticle.cxx
36   TauolaHepMCEvent.cxx
37   TauolaHepMCParticle.cxx
38   TauolaParticle.cxx
39   TauolaParticlePair.cxx
40   f_Decay.cxx
41   f_FilHep.cxx
42   f_InitTauola.cxx
43 )
44
45 set ( FSRCS
46   tauola-fortran/curr_cleo.f
47   tauola-fortran/f3pi.f
48   tauola-fortran/formf.f
49   tauola-fortran/pkorb.f
50   tauola-fortran/tauola.f
51   tauola-fortran/new-currents/other-currents/frho_pi_belle.f
52   tauola-fortran/new-currents/RChL-currents/rcht_3pi/f3pi_rcht.f
53   tauola-fortran/new-currents/RChL-currents/rcht_3pi/funct_3pi.f
54   tauola-fortran/new-currents/RChL-currents/rcht_common/FA1RCHL.f
55   tauola-fortran/new-currents/RChL-currents/rcht_common/ffwid3pi.f 
56   tauola-fortran/new-currents/RChL-currents/rcht_common/funct_rpt.f
57   tauola-fortran/new-currents/RChL-currents/rcht_common/gaus_integr.f
58   tauola-fortran/new-currents/RChL-currents/rcht_common/gfact.f
59   tauola-fortran/new-currents/RChL-currents/rcht_common/initA1Tab.f
60   tauola-fortran/new-currents/RChL-currents/rcht_common/initA1TabKKpi.f
61   tauola-fortran/new-currents/RChL-currents/rcht_common/value_parameter.f
62   tauola-fortran/new-currents/RChL-currents/rcht_common/wid_a1_fit.f
63   tauola-fortran/new-currents/RChL-currents/rcht_common/wid_a1_fitKKpi.f
64   tauola_extras.f
65 )
66
67 # No dictionary
68
69 # Add a library to the project using the specified source files
70 add_library(${MODULE} SHARED ${SRCS} ${FSRCS})
71
72 # Do not generate the ROOT map
73
74 # Additional compilation flags
75 set( CMAKE_Fortran_FLAGS "-O2 -fPIC -fno-automatic -fno-backslash -ffixed-line-length-132")
76 set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g")
77 target_link_libraries(${MODULE} )
78
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)
83
84 # Installation
85 install(TARGETS ${MODULE} 
86   ARCHIVE DESTINATION lib
87   LIBRARY DESTINATION lib)
88 install(FILES ${HDRS} DESTINATION include)