1 # **************************************************************************
2 # * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
4 # * Author: The ALICE Off-line Project. *
5 # * Contributors are mentioned in the code where appropriate. *
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 # **************************************************************************/
19 # Module include folder
20 include_directories(${AliRoot_SOURCE_DIR}/TEvtGen/${MODULE})
22 # Additional includes - alphabetical order except ROOT
23 include_directories(${ROOT_INCLUDE_DIRS}
24 ${AliRoot_SOURCE_DIR}/TEvtGen
25 ${AliRoot_SOURCE_DIR}/TEvtGen/EvtGen/EvtGenModels
28 # Sources - alphabetical order
62 # Add a library to the project using the specified source files
63 add_library(${MODULE} SHARED ${SRCS} ${FSRCS})
65 # Do not generate the ROOT map
67 # Additional compilation flags
68 set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "")
69 target_link_libraries(${MODULE} )
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)
77 install(TARGETS ${MODULE}
78 ARCHIVE DESTINATION lib
79 LIBRARY DESTINATION lib)
80 install(FILES ${HDRS} DESTINATION include)