Installing QAref and linking OCDB
authorhristov <Peter.Hristov@cern.ch>
Wed, 17 Dec 2014 15:54:35 +0000 (16:54 +0100)
committerhristov <Peter.Hristov@cern.ch>
Wed, 17 Dec 2014 15:54:45 +0000 (16:54 +0100)
CMakeLists.txt
OCDB/CMakeLists.txt [new file with mode: 0644]
QAref/CMakeLists.txt [new file with mode: 0644]

index 1838b7b..10f6991 100644 (file)
@@ -278,6 +278,8 @@ add_subdirectory(PWGPP)
 add_subdirectory(PWGUD)
 add_subdirectory(data)
 add_subdirectory(GRP)
+add_subdirectory(OCDB)
+add_subdirectory(QAref)
 
 # Enable SHUTTLE compilation
 # Check if DIMDIR and ODIR are set
diff --git a/OCDB/CMakeLists.txt b/OCDB/CMakeLists.txt
new file mode 100644 (file)
index 0000000..91788cc
--- /dev/null
@@ -0,0 +1,30 @@
+# **************************************************************************
+# * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
+# *                                                                        *
+# * Author: The ALICE Off-line Project.                                    *
+# * Contributors are mentioned in the code where appropriate.              *
+# *                                                                        *
+# * Permission to use, copy, modify and distribute this software and its   *
+# * documentation strictly for non-commercial purposes is hereby granted   *
+# * without fee, provided that the above copyright notice appears in all   *
+# * copies and that both the copyright notice and this permission notice   *
+# * appear in the supporting documentation. The authors make no claims     *
+# * about the suitability of this software for any purpose. It is          *
+# * provided "as is" without express or implied warranty.                  *
+# **************************************************************************
+
+
+if(CMAKE_HOST_UNIX)
+  # Symbolic link to OCDB, if supported
+  install(CODE "
+    EXECUTE_PROCESS(COMMAND ln -sf ${AliRoot_SOURCE_DIR}/OCDB OCDB
+       WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}
+       )
+    ")
+  message(STATUS "OCDB linked")
+else(CMAKE_HOST_UNIX)
+  # Copy OCDB, if no symbolic links
+  install(DIRECTORY . DESTINATION OCDB)
+  message(STATUS "OCDB installed")
+endif(CMAKE_HOST_UNIX)
+
diff --git a/QAref/CMakeLists.txt b/QAref/CMakeLists.txt
new file mode 100644 (file)
index 0000000..a5a2cd6
--- /dev/null
@@ -0,0 +1,22 @@
+# **************************************************************************
+# * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
+# *                                                                        *
+# * Author: The ALICE Off-line Project.                                    *
+# * Contributors are mentioned in the code where appropriate.              *
+# *                                                                        *
+# * Permission to use, copy, modify and distribute this software and its   *
+# * documentation strictly for non-commercial purposes is hereby granted   *
+# * without fee, provided that the above copyright notice appears in all   *
+# * copies and that both the copyright notice and this permission notice   *
+# * appear in the supporting documentation. The authors make no claims     *
+# * about the suitability of this software for any purpose. It is          *
+# * provided "as is" without express or implied warranty.                  *
+# **************************************************************************
+
+
+# Installing QAref files
+install(DIRECTORY . DESTINATION QAref  
+                   PATTERN "CMakeLists.txt" EXCLUDE
+       )
+
+message(STATUS "QAref installed")