Completely reengineered version of CMake build system (Johny)
[u/mrichter/AliRoot.git] / PWG1 / CMakelibPWG1.pkg
1 #--------------------------------------------------------------------------------#
2 # Package File for PWG1                                                          #
3 # Author : Johny Jose (johny.jose@cern.ch)                                       #
4 # Variables Defined :                                                            #
5 #                                                                                #
6 # SRCS - C++ source files                                                        #
7 # HDRS - C++ header files                                                        #
8 # DHDR - ROOT Dictionary Linkdef header file                                     #
9 # CSRCS - C source files                                                         #
10 # CHDRS - C header files                                                         #
11 # EINCLUDE - Include directories                                                 #
12 # EDEFINE - Compiler definitions                                                 #
13 # ELIBS - Extra libraries to link                                                #
14 # ELIBSDIR - Extra library directories                                           #
15 # PACKFFLAGS - Fortran compiler flags for package                                #
16 # PACKCXXFLAGS - C++ compiler flags for package                                  #
17 # PACKCFLAGS - C compiler flags for package                                      #
18 # PACKSOFLAGS - Shared library linking flags                                     #
19 # PACKLDFLAGS - Module linker flags                                              #
20 # PACKBLIBS - Libraries to link (Executables only)                               #
21 # EXPORT - Header files to be exported                                           #
22 # CINTHDRS - Dictionary header files                                             #
23 # CINTAUTOLINK - Set automatic dictionary generation                             #
24 # ARLIBS - Archive Libraries and objects for linking (Executables only)          #
25 # SHLIBS - Shared Libraries and objects for linking (Executables only)           #
26 #--------------------------------------------------------------------------------#
27
28 file (GLOB SRCS1 "*.cxx" )
29 file (GLOB SRCS2 "global/*.cxx" )
30 file (GLOB SRCS3 "cosmic/*.cxx" )
31 file (GLOB SRCS4 "tender/*.cxx" )
32 file (GLOB SRCS5 "ITS/*.cxx" )
33 file (GLOB SRCS6 "TRD/*.cxx" )
34 file (GLOB SRCS7 "TPC/*.cxx" )
35 file (GLOB SRCS8 "TOF/*.cxx" )
36 file (GLOB SRCS9 "TRD/info/*.cxx" )
37 file (GLOB SRCS10 "background/*.cxx" )
38
39 list(APPEND SRCS ${SRCS1} ${SRCS2} ${SRCS3} ${SRCS4} ${SRCS5} ${SRCS6} ${SRCS7} ${SRCS8} ${SRCS9} ${SRCS10})
40
41 string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
42
43 set ( DHDR  PWG1LinkDef.h)
44
45 set ( EINCLUDE  STEER TPC ITS TRD TOF TRD/Cal ANALYSIS/Tender ANALYSIS PWG1/comparison PWG1/cosmic PWG1/global PWG1/tender PWG1/ITS PWG1/TPC PWG1/TOF PWG1/TRD PWG1/TRD/info PWG1/background)
46
47   if( ALICE_TARGET STREQUAL "win32gcc")
48         
49                                 set ( PACKSOFLAGS  ${SOFLAGS} -L${ALICE_ROOT}/lib/tgt_${ALICE_TARGET} -lSTEERBase -lESD -lSTEER -lTPCbase -lANALYSISalice -lANALYSIS -L${ROOTLIBDIR} -lMinuit -lEG -lGeom)
50
51 endif( ALICE_TARGET STREQUAL "win32gcc")