Adding CMake package file for module TAmpt
authorjjose <jjose@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Nov 2010 09:28:45 +0000 (09:28 +0000)
committerjjose <jjose@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Nov 2010 09:28:45 +0000 (09:28 +0000)
TAmpt/CMakelibTAmpt.pkg [new file with mode: 0644]
TAmpt/CMakelibampt.pkg [new file with mode: 0644]

diff --git a/TAmpt/CMakelibTAmpt.pkg b/TAmpt/CMakelibTAmpt.pkg
new file mode 100644 (file)
index 0000000..ec8af60
--- /dev/null
@@ -0,0 +1,41 @@
+#--------------------------------------------------------------------------------#
+# Package File for                                                               #
+# Author : Johny Jose (johny.jose@cern.ch)                                       #
+# Variables Defined :                                                            #
+#                                                                                #
+# SRCS - C++ source files                                                        #
+# HDRS - C++ header files                                                        #
+# DHDR - ROOT Dictionary Linkdef header file                                     #
+# CSRCS - C source files                                                         #
+# CHDRS - C header files                                                         #
+# EINCLUDE - Include directories                                                 #
+# EDEFINE - Compiler definitions                                                 #
+# ELIBS - Extra libraries to link                                                #
+# ELIBSDIR - Extra library directories                                           #
+# PACKFFLAGS - Fortran compiler flags for package                                #
+# PACKCXXFLAGS - C++ compiler flags for package                                  #
+# PACKCFLAGS - C compiler flags for package                                      #
+# PACKSOFLAGS - Shared library linking flags                                     #
+# PACKLDFLAGS - Module linker flags                                              #
+# PACKBLIBS - Libraries to link (Executables only)                               #
+# EXPORT - Header files to be exported                                           #
+# CINTHDRS - Dictionary header files                                             #
+# CINTAUTOLINK - Set automatic dictionary generation                             #
+# ARLIBS - Archive Libraries and objects for linking (Executables only)          #
+# SHLIBS - Shared Libraries and objects for linking (Executables only)           #
+#--------------------------------------------------------------------------------#
+
+set ( SRCS  AliGenAmpt.cxx TAmpt.cxx)
+string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
+
+set ( DHDR  TAmptLinkDef.h)
+
+set ( EINCLUDE  TAmpt/AMPT EVGEN)
+
+set ( EXPORT  AliGenAmpt.h TAmpt.h)
+
+if( ALICE_TARGET STREQUAL "win32gcc")
+       
+                       set ( PACKSOFLAGS  ${SOFLAGS} -L${ALICE_ROOT}/lib/tgt_${ALICE_TARGET} -lEVGEN -lSTEER -lSTEERBase -lampt -L${ROOTLIBDIR} -lEG)
+
+endif( ALICE_TARGET STREQUAL "win32gcc")
diff --git a/TAmpt/CMakelibampt.pkg b/TAmpt/CMakelibampt.pkg
new file mode 100644 (file)
index 0000000..0bc882d
--- /dev/null
@@ -0,0 +1,40 @@
+#--------------------------------------------------------------------------------#
+# Package File for                                                               #
+# Author : Johny Jose (johny.jose@cern.ch)                                       #
+# Variables Defined :                                                            #
+#                                                                                #
+# SRCS - C++ source files                                                        #
+# HDRS - C++ header files                                                        #
+# DHDR - ROOT Dictionary Linkdef header file                                     #
+# CSRCS - C source files                                                         #
+# CHDRS - C header files                                                         #
+# EINCLUDE - Include directories                                                 #
+# EDEFINE - Compiler definitions                                                 #
+# ELIBS - Extra libraries to link                                                #
+# ELIBSDIR - Extra library directories                                           #
+# PACKFFLAGS - Fortran compiler flags for package                                #
+# PACKCXXFLAGS - C++ compiler flags for package                                  #
+# PACKCFLAGS - C compiler flags for package                                      #
+# PACKSOFLAGS - Shared library linking flags                                     #
+# PACKLDFLAGS - Module linker flags                                              #
+# PACKBLIBS - Libraries to link (Executables only)                               #
+# EXPORT - Header files to be exported                                           #
+# CINTHDRS - Dictionary header files                                             #
+# CINTAUTOLINK - Set automatic dictionary generation                             #
+# ARLIBS - Archive Libraries and objects for linking (Executables only)          #
+# SHLIBS - Shared Libraries and objects for linking (Executables only)           #
+#--------------------------------------------------------------------------------#
+
+set ( SRCS  AMPT/AliAmptRndm.cxx)
+
+string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
+
+set ( DHDR  amptLinkDef.h)
+
+set ( FSRCS  AMPT/ampt.f AMPT/amptset.f AMPT/amptsetdef.f AMPT/amptsub.f AMPT/art1f.f AMPT/hijing1.383_ampt.f AMPT/hipyset1.35.f AMPT/linana.f AMPT/profile.f AMPT/zpc.f)
+
+if( ALICE_TARGET STREQUAL "macosxicc")
+       
+       string ( REGEX REPLACE "-O[^ ]*" "" PACKFFLAGS ${FFLAGS})
+
+endif( ALICE_TARGET STREQUAL "macosxicc")