]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TEvtGen/HepMC/CMakeLists.txt
Correct use of ROOT_INCLUDE_DIR
[u/mrichter/AliRoot.git] / TEvtGen / HepMC / 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 HepMC         )
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_DIR}
24                     ${AliRoot_SOURCE_DIR}/TEvtGen
25                     ${AliRoot_SOURCE_DIR}/TEvtGen/EvtGen/EvtGenModels
26 )
27
28 # Sources - alphabetical order
29 set(SRCS
30   CompareGenEvent.cc
31   filterEvent.cc
32   Flow.cc
33   GenCrossSection.cc
34   GenEvent.cc
35   GenEventStreamIO.cc
36   GenParticle.cc
37   GenRanges.cc
38   GenVertex.cc
39   HeavyIon.cc
40   HEPEVT_Wrapper.cc
41   HerwigWrapper.cc
42   IO_AsciiParticles.cc
43   IO_GenEvent.cc
44   IO_HEPEVT.cc
45   IO_HERWIG.cc
46   PdfInfo.cc
47   Polarization.cc
48   SearchVector.cc
49   SimpleVector.icc
50   StreamHelpers.cc
51   StreamInfo.cc
52   WeightContainer.cc
53   Units.cc 
54 )
55
56 set (FSRCS
57   dummy.F
58 )
59
60 # No dictionary
61
62 # Add a library to the project using the specified source files
63 add_library(${MODULE} SHARED ${SRCS} ${FSRCS})
64
65 # Do not generate the ROOT map
66
67 # Additional compilation flags
68 set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "")
69 target_link_libraries(${MODULE} )
70
71 # System dependent: Modify the way the library is build
72 if(${CMAKE_SYSTEM} MATCHES Darwin)
73     set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
74 endif(${CMAKE_SYSTEM} MATCHES Darwin)
75
76 # Installation
77 install(TARGETS ${MODULE} 
78   ARCHIVE DESTINATION lib
79   LIBRARY DESTINATION lib)
80 install(FILES ${HDRS} DESTINATION include)