EMCAL
[u/mrichter/AliRoot.git] / CMakeLists.txt
CommitLineData
d50827fc 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#--------------------------------------------------------------------------#
17# Set Basic CMake Configuration #
18#--------------------------------------------------------------------------#
e969a926 19
cbd58b9c 20cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR)
e969a926 21
d50827fc 22project(AliRoot CXX C)
bf4c2121 23
d50827fc 24# If no Fortran, i.e on Windows
25include(CheckLanguage)
26check_language(Fortran)
27if(CMAKE_Fortran_COMPILER)
28 enable_language(Fortran OPTIONAL)
29else()
30 message("No Fortran support. Disabling LHAPDF, PHYTIA6, MICROCERN")
6a8ffaaa 31endif()
6db31708 32
d50827fc 33# Path to additonal modules
f72dcc4f 34set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
b22a7396 35
36# - CLANG_MAJOR.CLANG_MINOR or
37# - GCC_MAJOR.GCC_MINOR.GCC_PATCH
38include(CheckCompiler)
39
40# ROOT dictionaries and maps
d50827fc 41include(CMakeALICE)
6db31708 42
d50827fc 43# ROOT configuration mandatory
44if(ROOTSYS)
45 find_package(ROOT REQUIRED)
234c484d 46
47 # ROOT must be build with XML2 support
48 if(ROOT_HASXML STREQUAL "no")
49 message(FATAL_ERROR "ROOT was not build with xml2 support. Please reinstall or rebuild ROOT with xml2 support")
50 endif(ROOT_HASXML STREQUAL "no")
d50827fc 51else()
52 message(FATAL_ERROR "ROOT installation not found!\nPlease point to the ROOT installation using -DROOTSYS=ROOT_INSTALL_DIR")
53endif(ROOTSYS)
6db31708 54
56966a5e 55# DATE
56find_package(DATE)
57
b22a7396 58# AliRoot version extracted from Git repository
59# Sets 4 git variables
d37e8011 60# - GIT_REFSPEC - complete name of the current reference
61# - ALIROOT_BRANCH - name of the branch or tag extracted from the current reference
62# - GIT_SHA1 - current hash in the long format
63# - GIT_SHORT_SHA1 - current hash in the short format
b22a7396 64include(CheckGitVersion)
6db31708 65
d50827fc 66message(STATUS "CMake platform: ${CMAKE_SYSTEM}")
67message(STATUS "Build folder: ${AliRoot_BINARY_DIR}")
68message(STATUS "Source folder: ${AliRoot_SOURCE_DIR}")
69message(STATUS "Installation folder: ${CMAKE_INSTALL_PREFIX}")
70
71
72# AliRoot modules
17f9c1f8 73add_subdirectory(STEER)
74add_subdirectory(STAT)
75add_subdirectory(OADB)
76add_subdirectory(ANALYSIS)
77add_subdirectory(RAW)
78add_subdirectory(ITS)
79add_subdirectory(TPC)
80add_subdirectory(VZERO)
93cad35e 81add_subdirectory (T0)
6cc87626 82add_subdirectory (TOF)
464611d8 83add_subdirectory (TRD)
b81ada2f 84add_subdirectory (ZDC)
73230f04 85add_subdirectory (STRUCT)
58c271b6 86add_subdirectory (HMPID)
82795f89 87add_subdirectory (PMD)
b22a7396 88add_subdirectory (MUON)
547d0dfe 89add_subdirectory (FMD)
55bce1f2 90add_subdirectory (ACORDE)
2509791b 91add_subdirectory (EMCAL)
d50827fc 92#add_subdirectory (PHOS)
93#add_subdirectory (TRIGGER)
94#add_subdirectory (BCM)
95#add_subdirectory (CORRFW)
96#add_subdirectory (FASTSIM)
97#if(CMAKE_Fortran_COMPILER_WORKS)
98# add_subdirectory (LHAPDF)
99# add_subdirectory (PYTHIA6)
100# add_subdirectory (MICROCERN)
101#endif(CMAKE_Fortran_COMPILER_WORKS)
102#add_subdirectory (EVGEN)
103#add_subdirectory (TUHKMgen)
104#add_subdirectory (TTherminator)
105#add_subdirectory (TPHIC)
106#add_subdirectory (THydjet)
107#add_subdirectory (PWG)
108#add_subdirectory (Vc)
109#add_subdirectory (HLT)