Added Centrality cut to event mixing.
[u/mrichter/AliRoot.git] / cmake / CMakemacosx.cmake
CommitLineData
6db31708 1#--------------------------------------------------------------------------------#
2# Maxosx CMake System configuration file for the AliRoot Build System #
3# #
4# Author : Johny Jose (johny.jose@cern.ch) #
5# #
6#--------------------------------------------------------------------------------#
7
8execute_process (COMMAND sw_vers | sed -n 's/ProductVersion://p' | cut -d. -f1
9 OUTPUT_VARIABLE MACOSX_MAJOR
10 OUTPUT_STRIP_TRAILING_WHITESPACE )
11execute_process (COMMAND sw_vers | sed -n 's/ProductVersion://p' | cut -d. -f2
12 OUTPUT_VARIABLE MACOSX_MINOR
13 OUTPUT_STRIP_TRAILING_WHITESPACE )
14
15set(FINK_ROOT $ENV{FINK_ROOT})
16if( NOT FINK_ROOT )
17
18 set ( FINK_ROOT /usr/local)
19
20endif( NOT FINK_ROOT )
21
22set ( OPT "-O -g")
23set ( NOOPT "-O0 -g")
24
25set ( CXXOPT "${OPT}")
26set ( CXXNOOPT "${NOOPT}")
27set ( COPT "${OPT}")
28
29set ( CLIBDEFS "-DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ -DCERNLIB_PPC")
30set ( CLIBCXXOPTS )
31set ( CLIBCOPT )
32set ( CLIBFOPT ${CLIBDEFS})
33
34set ( CXXWARN "-Wall -Wno-long-long -W -Weffc++ -Wshadow -Woverloaded-virtual -ansi")
35
36set ( CXXSTF "-pipe -fbounds-check -fsigned-char -fno-common -fmessage-length=0 -fno-default-inline -fno-inline -I/usr/X11R6/include -I${FINK_ROOT}/include")
37
38set ( CXXFLAGS "${CXXOPT} ${CXXSTF}")
39
40set ( CXXFLAGSNO "${CXXNOOPT} ${CXXSTF}")
41
42set ( CFLAGS "${COPT} -Wall -W -fno-common -pipe -I${FINK_ROOT}/include")
43
44set ( FFLAGS "${FFLAGS} -DFORTRAN_GFORTRAN")
45
46set ( DEPENDFFLAGS ${FFLAGS})
47
48set ( CINTFLAGS )
49
50set ( LDFLAGS "${OPT} ${DICTLOAD}")
51
52set ( SOFLAGS "-dynamiclib -undefined dynamic_lookup -single_module")
53
54set ( ALLIB )
55
56set ( DEPENDCXXFLAGS "${CXXFLAGS} -I/usr/include/sys")
57
58set ( SYSLIBS "-L/usr/X11R6/lib -lX11")
59
60set ( EXEFLAGS "-bind_at_load")
61
62set (CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem")
63
64set (CMAKE_INCLUDE_SYSTEM_FLAG_C "-isystem")
65
66
67execute_process(COMMAND ${CMAKE_Fortran_COMPILER} -print-file-name=libgfortran.dylib
68 OUTPUT_VARIABLE _shlib
69 OUTPUT_STRIP_TRAILING_WHITESPACE)
70execute_process(COMMAND ${CMAKE_Fortran_COMPILER} -print-file-name=libgfortranbegin.a
71 OUTPUT_VARIABLE _alib
72 OUTPUT_STRIP_TRAILING_WHITESPACE)
73set( SYSLIBS "${SYSLIBS} -ldl ${_shlib} ${_alib}")
74