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