Cleanup of the linking to avoid problems on Mac
[u/mrichter/AliRoot.git] / RAW / dateStream / CMakeLists.txt
CommitLineData
a0f34e87 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# **************************************************************************
0224bae4 15
16# Module
a0f34e87 17set(MODULE dateStream)
18
427d561c 19include_directories(${AliRoot_SOURCE_DIR}/${MODULE})
0224bae4 20
0224bae4 21# Add an executable to the project using the specified source files
56966a5e 22add_executable(${MODULE} dateStream.cxx)
0224bae4 23
e9900c20 24# compile and link flags from DATE (probably not needed)
ca331a9c 25set(MODULE_COMPILE_FLAGS)
26set(MODULE_LINK_FLAGS)
27
28if(DATE_FOUND)
29 set(MODULE_COMPILE_FLAGS "${DATE_CFLAGS}")
30 set(MODULE_LINK_FLAGS "${DATE_LDFLAGS} ${DATE_LIBS}")
31endif(DATE_FOUND)
32
ca331a9c 33# Setting target compile and linking flags
34set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "${MODULE_COMPILE_FLAGS}")
35set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
36
0224bae4 37# Installation
38install(TARGETS ${MODULE} RUNTIME DESTINATION bin)