]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TEvtGen/Photos/CMakeLists.txt
Correct use of ROOT_INCLUDE_DIR
[u/mrichter/AliRoot.git] / TEvtGen / Photos / 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 Photos)
18
19# Module include folder
20include_directories(${AliRoot_SOURCE_DIR}/TEvtGen/${MODULE})
21
22# Additional includes - alphabetical order except ROOT
f0315837 23include_directories(${ROOT_INCLUDE_DIR}
e706c082 24 ${AliRoot_SOURCE_DIR}/TEvtGen
25 ${AliRoot_SOURCE_DIR}/TEvtGen/Photos/src/photosCInterfaces
26 ${AliRoot_SOURCE_DIR}/TEvtGen/Photos/src/utilities
27 ${AliRoot_SOURCE_DIR}/TEvtGen/Photos/src/photosFortranInterfaces
28)
29
30# Sources - alphabetical order
31set(SRCS
32src/photos-fortran/forW-MEc.cxx
33src/photos-fortran/forZ-MEc.cxx
34src/photos-fortran/photosC.cxx
35src/utilities/Log.cxx
36src/utilities/PhotosRandom.cxx
37src/utilities/PhotosUtilities.cxx
38src/utilities/PhotosDebugRandom.cxx
39src/photosFortranInterfaces/PH_HEPEVT_Interface.cxx
40src/photosCInterfaces/PhotosBranch.cxx
41src/photosCInterfaces/PhotosParticle.cxx
42src/photosCInterfaces/Photos.cxx
43src/photosCInterfaces/PhotosEvent.cxx
44src/eventRecordInterfaces/PhotosHEPEVTEvent.cxx
45src/eventRecordInterfaces/PhotosHEPEVTParticle.cxx
46src/eventRecordInterfaces/PhotosHepMCEvent.cxx
47src/eventRecordInterfaces/PhotosHepMCParticle.cxx
48)
49
50# No dictionary
51
52# Add a library to the project using the specified source files
53add_library(${MODULE} SHARED ${SRCS})
54
55# Do not generate the ROOT map
6f2765e2 56# Dependencies
57set(LIBDEPS HepMC )
e706c082 58
59# Additional compilation flags
68aeb13b 60set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "")
6f2765e2 61
62# Linking the library
63target_link_libraries(${MODULE} ${LIBDEPS})
e706c082 64
65# System dependent: Modify the way the library is build
66if(${CMAKE_SYSTEM} MATCHES Darwin)
67 set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
68endif(${CMAKE_SYSTEM} MATCHES Darwin)
69
70# Installation
71install(TARGETS ${MODULE}
72 ARCHIVE DESTINATION lib
73 LIBRARY DESTINATION lib)
74install(FILES ${HDRS} DESTINATION include)