/* GATE : configuration file */

#ifndef GATE_CONFIGURATION_H
#define GATE_CONFIGURATION_H
//This file is interpreted by cmake, to define macros based on the cmake configuration options
// Check : GATE_ANALYSIS_USE_FILE        = @GATE_ANALYSIS_USE_FILE@

#cmakedefine GATE_USE_ROOT                 @GATE_USE_ROOT@
#cmakedefine GATE_USE_OPTICAL              @GATE_USE_OPTICAL@
#cmakedefine GATE_USE_XRAYLIB              @GATE_USE_XRAYLIB@
#cmakedefine GATE_ANALYSIS_USE_GENERAL     @GATE_ANALYSIS_USE_GENERAL@
#cmakedefine GATE_ANALYSIS_USE_FILE        @GATE_ANALYSIS_USE_FILE@
#cmakedefine GATE_USE_LMF                  @GATE_USE_LMF@
#cmakedefine GATE_USE_ECAT7                @GATE_USE_ECAT7@
#cmakedefine GATE_USE_GEANT4_UIVIS         @GATE_USE_GEANT4_UIVIS@
#cmakedefine GATE_USE_RTK                  @GATE_USE_RTK@
#cmakedefine GATE_USE_ITK                  @GATE_USE_ITK@
#cmakedefine GATE_USE_DAVIS                @GATE_USE_DAVIS@

#ifdef GATE_USE_ROOT
 #define G4ANALYSIS_USE_ROOT 1
#endif

#ifdef GATE_ANALYSIS_USE_GENERAL
 #define G4ANALYSIS_USE_GENERAL 1
#endif

#ifdef GATE_ANALYSIS_USE_FILE
 #define  G4ANALYSIS_USE_FILE 1
#endif

//#define G4VERSION                  ${Geant4_VERSION}
#define G4VERSION_MAJOR              ${G4VERSION_MAJOR}
#define G4VERSION_MINOR              ${G4VERSION_MINOR}
#define G4VERSION_PATCH              ${G4VERSION_PATCH}
#cmakedefine GATE_USE_GPU            @GATE_USE_GPU@
#cmakedefine CUDA_FOUND              @CUDA_FOUND@

#ifndef G4VERSION_MINOR
   #define G4VERSION_MINOR 0
#endif

#ifndef G4VERSION_PATCH
   #define G4VERSION_PATCH 0
#endif

// WARNING : Replace all G4VERSION_3 and other with a correct test
#if (G4VERSION_MAJOR > 9) || ((G4VERSION_MAJOR==9) && (G4VERSION_MINOR >=3))
   #define G4VERSION9_3 1
#endif

// WARNING : Replace all G4VERSION_3 and other with a correct test
#if (G4VERSION_MAJOR > 9) || ((G4VERSION_MAJOR==9) && (G4VERSION_MINOR >=6))
   #define Geant496_COMPATIBILITY 1
#endif

#cmakedefine GATE_USE_OPENGL               @GATE_USE_OPENGL@

#endif // GATE_CONFIGURATION_H
