Cmake for new lhapdf version
[u/mrichter/AliRoot.git] / LHAPDF / CMakeliblhapdf.pkg
1 # -*- mode: cmake -*-
2
3 #--------------------------------------------------------------------------------#
4 # Package File for lhapdf                                                        #
5 # Author : Johny Jose (johny.jose@cern.ch)                                       #
6 # Variables Defined :                                                            #
7 #                                                                                #
8 # SRCS - C++ source files                                                        #
9 # HDRS - C++ header files                                                        #
10 # DHDR - ROOT Dictionary Linkdef header file                                     #
11 # CSRCS - C source files                                                         #
12 # CHDRS - C header files                                                         #
13 # EINCLUDE - Include directories                                                 #
14 # EDEFINE - Compiler definitions                                                 #
15 # ELIBS - Extra libraries to link                                                #
16 # ELIBSDIR - Extra library directories                                           #
17 # PACKFFLAGS - Fortran compiler flags for package                                #
18 # PACKCXXFLAGS - C++ compiler flags for package                                  #
19 # PACKCFLAGS - C compiler flags for package                                      #
20 # PACKSOFLAGS - Shared library linking flags                                     #
21 # PACKLDFLAGS - Module linker flags                                              #
22 # PACKBLIBS - Libraries to link (Executables only)                               #
23 # EXPORT - Header files to be exported                                           #
24 # CINTHDRS - Dictionary header files                                             #
25 # CINTAUTOLINK - Set automatic dictionary generation                             #
26 # ARLIBS - Archive Libraries and objects for linking (Executables only)          #
27 # SHLIBS - Shared Libraries and objects for linking (Executables only)           #
28 #--------------------------------------------------------------------------------#
29
30 set ( SRCS AliStructFuncType.cxx lhapdf5.5.1/src/version.cxx  lhapdf5.5.1/src/getdatapath.cxx)
31
32 set ( HDRS  AliStructFuncType.h)
33
34 set ( DHDR lhapdfLinkDef.h)
35
36 set ( EINCLUDE  LHAPDF/lhapdf5.5.1 LHAPDF/lhapdf5.5.1/include LHAPDF/lhapdf5.5.1/src)
37
38 set ( CSRCS  lhapdf5.5.1/src/binreloc.c )
39
40 set ( FSRCS  lhapdf5.5.1/src/alphas.f lhapdf5.5.1/src/commoninit.f lhapdf5.5.1/src/description.f lhapdf5.5.1/src/eks98.f lhapdf5.5.1/src/eksarp.f lhapdf5.5.1/src/eps08.f  lhapdf5.5.1/src/eps09.f lhapdf5.5.1/src/EVLCTEQ.f lhapdf5.5.1/src/evolution.f lhapdf5.5.1/src/inputPDF.f lhapdf5.5.1/src/LHpdflib.F lhapdf5.5.1/src/parameter.f lhapdf5.5.1/src/QCDNUM.f lhapdf5.5.1/src/QCDparams.f lhapdf5.5.1/src/Sqcdnum.f lhapdf5.5.1/src/wrapa02.f lhapdf5.5.1/src/wrapa02m.f lhapdf5.5.1/src/wrapabfkwpi.f lhapdf5.5.1/src/wrapacfgpg.f lhapdf5.5.1/src/wrapcteq5.f lhapdf5.5.1/src/wrapcteq6.f lhapdf5.5.1/src/wrapcteq6lg.f lhapdf5.5.1/src/wrapdgg.f lhapdf5.5.1/src/wrapdog.f lhapdf5.5.1/src/wrapEVLCTEQ.f lhapdf5.5.1/src/wrapevolve.f lhapdf5.5.1/src/wrapgrv.f lhapdf5.5.1/src/wrapgrvg.f lhapdf5.5.1/src/wrapgrvpi.f lhapdf5.5.1/src/wrapgsg96.f lhapdf5.5.1/src/wrapgsg.f lhapdf5.5.1/src/wraph1.f lhapdf5.5.1/src/wraplacg.f lhapdf5.5.1/src/wrapowpi.f lhapdf5.5.1/src/wrapmrst.f lhapdf5.5.1/src/wrapQCDNUM3.f lhapdf5.5.1/src/wrapQCDNUM4.f lhapdf5.5.1/src/wrapQCDNUM.f lhapdf5.5.1/src/wrapsasg.f lhapdf5.5.1/src/wrapsmrspi.f lhapdf5.5.1/src/wrapwhitg.f lhapdf5.5.1/src/wrapzeus.f lhapdf5.5.1/src/lhaglue.f lhapdf5.5.1/src/wrapUSER.f)
41
42 if( ALICE_TARGET STREQUAL "solarisCC5")
43           set ( PACKFFLAGS "${FFLAGS} -free")
44 elseif( ALICE_TARGET STREQUAL "linuxx8664icc")
45                 set ( PACKFFLAGS "${FFLAGS} -nofixed" )
46 else()
47                 set ( PACKFFLAGS "${FFLAGS} -ffree-form")
48 endif( ALICE_TARGET STREQUAL "solarisCC5")
49
50 set( PACKCXXFLAGS "${CXXFLAGS} -DDEFAULTPREFIXPATH=\\\"NONE\\\" -DDEFAULTLHAPATH=\\\"${ALICE_ROOT}/LHAPDF/PDFsets\\\"" )
51
52
53 set ( EXPORT AliStructFuncType.h)
54
55 #--------------------------------------------------------------------------------#
56 # install PDF data 
57 install ( DIRECTORY PDFsets
58   DESTINATION LHAPDF
59   PATTERN ".svn" EXCLUDE
60   PATTERN ".d"  EXCLUDE 
61   PATTERN ".so" EXCLUDE)
62