]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - CMakeLists.txt
TENDER becomes Tender, removing .so
[u/mrichter/AliRoot.git] / CMakeLists.txt
index 8789669a47eccaf1818da24e1459accbfb4c6448..ea522245a931309e400b0166f31d80c5de74829b 100644 (file)
@@ -21,6 +21,15 @@ cmake_minimum_required(VERSION 2.8.11 FATAL_ERROR)
 
 project(AliRoot CXX C)
 
+message(STATUS "CMake platform: ${CMAKE_SYSTEM}")
+message(STATUS "Build folder: ${AliRoot_BINARY_DIR}")
+message(STATUS "Source folder: ${AliRoot_SOURCE_DIR}")
+message(STATUS "Installation folder: ${CMAKE_INSTALL_PREFIX}")
+
+if(CMAKE_INSTALL_PREFIX STREQUAL "${AliRoot_SOURCE_DIR}")
+    message(FATAL_ERROR "Please choose a different installation point than the source tree!")
+endif()
+
 # Path to additonal modules
 set(CMAKE_MODULE_PATH "${AliRoot_SOURCE_DIR}/cmake")
 
@@ -101,6 +110,12 @@ if(DA)
     message(STATUS "DAs enabled")
 endif(DA)
 
+# MDC rpm creation enables the static build
+if(MDCRPM)
+    set(ALIROOT_STATIC TRUE)
+    message(STATUS "AliMDC RPM enabled. AliRoot static build enabled")
+endif(MDCRPM)
+
 # ROOT configuration mandatory
 if(ROOTSYS)
     find_package(ROOT REQUIRED)
@@ -132,7 +147,6 @@ else()
     message(STATUS "No Fortran support. Disabling LHAPDF, PHYTIA6, MICROCERN, etc.")
 endif()
 
-
 # DATE
 if(DATE_CONFIG)
     find_package(DATE)
@@ -166,11 +180,6 @@ find_package(FASTJET)
 # ZEROMQ
 find_package(ZeroMQ)
 
-message(STATUS "CMake platform: ${CMAKE_SYSTEM}")
-message(STATUS "Build folder: ${AliRoot_BINARY_DIR}")
-message(STATUS "Source folder: ${AliRoot_SOURCE_DIR}")
-message(STATUS "Installation folder: ${CMAKE_INSTALL_PREFIX}")
-
 # General flags -> Should be moved into a configuration file
 set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
 set(CMAKE_NO_SYSTEM_FROM_IMPORTED TRUE)
@@ -242,10 +251,26 @@ endif(CMAKE_Fortran_COMPILER)
 
 # PWG libraries
 add_subdirectory(PWG)
+add_subdirectory(PWGCF)
+# Depends on PWGCF - To fix dependencies
+add_subdirectory(PWGGA)
+# Depends on CF  - To fix the dependencies
+add_subdirectory(PWGDQ)
+add_subdirectory(PWGHF)
+# Depends on CF
+add_subdirectory(PWGJE)
+add_subdirectory(PWGLF)
+add_subdirectory(PWGPP)
+add_subdirectory(PWGUD)
+add_subdirectory(data)
 
 # Enable SHUTTLE compilation
 # Check if DIMDIR and ODIR are set
 if(SHUTTLE)
+    if(ROOT_HASALIEN STREQUAL "no")
+       message(FATAL_ERROR "Shuttle needs ROOT build with AliEn support. Please build ROOT with AliEn support. Do not forget to set ALIEN to your AliEn installation")
+    endif()
+    
     if(DIMDIR AND ODIR AND ALIEN)
         add_subdirectory(SHUTTLE)
     else()
@@ -253,4 +278,4 @@ if(SHUTTLE)
     endif()
 endif(SHUTTLE)
 
-add_subdirectory(ALIROOT)
+add_subdirectory(ALIROOT)
\ No newline at end of file