Converting mchview to native cmake
authorhristov <Peter.Hristov@cern.ch>
Tue, 18 Nov 2014 20:45:53 +0000 (21:45 +0100)
committeragrigora <alina.grigoras@cern.ch>
Mon, 15 Dec 2014 12:51:58 +0000 (13:51 +0100)
MUON/CMakeLists.txt
MUON/CMakebinmchview.pkg [deleted file]
MUON/mchview/CMakeLists.txt [new file with mode: 0644]
MUON/mchview/mchview.cxx [moved from MUON/mchview.cxx with 100% similarity]

index ce5b5ee..6225aaf 100644 (file)
@@ -28,6 +28,7 @@ add_subdirectory(MUONrec)
 add_subdirectory(MUONshuttle)
 add_subdirectory(MUONsim)
 add_subdirectory(MUONtrigger)
+add_subdirectory(mchview)
 
 # Install data folder
 install(DIRECTORY data DESTINATION MUON)
diff --git a/MUON/CMakebinmchview.pkg b/MUON/CMakebinmchview.pkg
deleted file mode 100644 (file)
index 4743efb..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-#--------------------------------------------------------------------------------#
-# Package File for mchview                                                       #
-# Author : Johny Jose (johny.jose@cern.ch)                                       #
-# Variables Defined :                                                            #
-#                                                                                #
-# SRCS - C++ source files                                                        #
-# HDRS - C++ header files                                                        #
-# DHDR - ROOT Dictionary Linkdef header file                                     #
-# CSRCS - C source files                                                         #
-# CHDRS - C header files                                                         #
-# EINCLUDE - Include directories                                                 #
-# EDEFINE - Compiler definitions                                                 #
-# ELIBS - Extra libraries to link                                                #
-# ELIBSDIR - Extra library directories                                           #
-# PACKFFLAGS - Fortran compiler flags for package                                #
-# PACKCXXFLAGS - C++ compiler flags for package                                  #
-# PACKCFLAGS - C compiler flags for package                                      #
-# PACKSOFLAGS - Shared library linking flags                                     #
-# PACKLDFLAGS - Module linker flags                                              #
-# PACKBLIBS - Libraries to link (Executables only)                               #
-# EXPORT - Header files to be exported                                           #
-# CINTHDRS - Dictionary header files                                             #
-# CINTAUTOLINK - Set automatic dictionary generation                             #
-# ARLIBS - Archive Libraries and objects for linking (Executables only)          #
-# SHLIBS - Shared Libraries and objects for linking (Executables only)           #
-#--------------------------------------------------------------------------------#
-
-set ( SRCS mchview.cxx)
-
-set ( EINCLUDE ${EINCLUDE} MUON/mapping)
-
-set ( ELIBS  MUONmapping RAWDatabase MUONshuttle MUONgraphics MUONrec MUONgeometry MUONcalib MUONbase MUONraw RAWDatasim MUONtrigger MUONcore STEER CDB AOD RAWDatarec ESD RAWDatabase STEERBase ANALYSIS)
-
diff --git a/MUON/mchview/CMakeLists.txt b/MUON/mchview/CMakeLists.txt
new file mode 100644 (file)
index 0000000..785172e
--- /dev/null
@@ -0,0 +1,40 @@
+# **************************************************************************
+# * 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.                  *
+# **************************************************************************
+
+# alieve executable
+
+# Module include folder
+include_directories(${AliRoot_SOURCE_DIR}/MUON/mchview)
+
+# Additional include folders in alphabetical order
+include_directories(
+                    ${AliRoot_SOURCE_DIR}/MUON/MUONcore
+                    ${AliRoot_SOURCE_DIR}/MUON/MUONgraphics
+                    ${AliRoot_SOURCE_DIR}/MUON/MUONmapping
+                    ${AliRoot_SOURCE_DIR}/STEER/CDB
+                    ${AliRoot_SOURCE_DIR}/STEER/STEERBase
+                   )
+
+# aliroot executable
+# Sources in alphabetical order
+set(SRCS
+  mchview.cxx
+)
+  
+add_executable(mchview ${SRCS})
+target_link_libraries(mchview MUONmapping RAWDatabase MUONshuttle MUONgraphics MUONrec MUONgeometry MUONcalib MUONbase MUONraw RAWDatasim MUONtrigger MUONcore STEER CDB AOD RAWDatarec ESD RAWDatabase STEERBase ANALYSIS)
+
+# Installation
+install(TARGETS mchview RUNTIME DESTINATION bin)
similarity index 100%
rename from MUON/mchview.cxx
rename to MUON/mchview/mchview.cxx