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 # **************************************************************************
17 set(MODULE dateStream)
19 include_directories(${AliRoot_SOURCE_DIR}/${MODULE})
21 # Aditional include folders in alphabetical order except ROOT
22 include_directories(${ROOT_INCLUDE_DIRS}
23 ${AliRoot_SOURCE_DIR}/RAW/RAWDatabase
24 ${AliRoot_SOURCE_DIR}/RAW/RAWDatarec
25 ${AliRoot_SOURCE_DIR}/STEER/STEERBase
29 link_directories(${ROOT_LIBDIR})
31 # Aditional ROOT libraries that are not shoed by root-config --libs
32 set(ROOTEXTRALIBS Geom VMC Minuit)
34 # Add an executable to the project using the specified source files
35 add_executable(${MODULE} dateStream.cxx)
36 target_link_libraries(${MODULE} STEERBase RAWDatabase ${ROOTEXTRALIBS} ${ROOT_LIBRARIES})
38 # compile and link flags
39 set(MODULE_COMPILE_FLAGS)
40 set(MODULE_LINK_FLAGS)
43 set(MODULE_COMPILE_FLAGS "${DATE_CFLAGS}")
44 set(MODULE_LINK_FLAGS "${DATE_LDFLAGS} ${DATE_LIBS}")
47 # Additional compilation and linking flags
48 set(MODULE_COMPILE_FLAGS " ${MODULE_COMPILE_FLAGS}")
50 # System dependent: Modify the way the library is build
51 if(${CMAKE_SYSTEM} MATCHES Darwin)
52 set(MODULE_LINK_FLAGS "-undefined dynamic_lookup ${MODULE_LINK_FLAGS}")
53 endif(${CMAKE_SYSTEM} MATCHES Darwin)
55 # Setting target compile and linking flags
56 set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "${MODULE_COMPILE_FLAGS}")
57 set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
60 install(TARGETS ${MODULE} RUNTIME DESTINATION bin)