~jan.greis/maus/1811

« back to all changes in this revision

Viewing changes to third_party/install/lib64/Geant4-9.6.2/Modules/FindAIDA.cmake

  • Committer: Ao Liu
  • Date: 2015-09-01 03:14:59 UTC
  • mfrom: (697.90.8 trunk)
  • mto: (697.90.11 trunk)
  • mto: This revision was merged to the branch mainline in revision 711.
  • Revision ID: aoliu@fnal.gov-20150901031459-i0stzz3bzo7b06zh
CkovMCDigitizer with the MAUS::Data and better handling of the hits

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# - Finds AIDA instalation
2
 
# This module sets up AIDA information 
3
 
# It defines:
4
 
# AIDA_FOUND           If the AIDA is found
5
 
# AIDA_INCLUDE_DIR     PATH to the include directory
6
 
# AIDA_LIBRARIES       AIDA installation libraries
7
 
# AIDA_IMPLEMENTATION  The implementation of AIDA found
8
 
 
9
 
find_program(AIDA_CONFIG_EXECUTABLE aida-config)
10
 
 
11
 
if(NOT AIDA_CONFIG_EXECUTABLE)
12
 
  set(AIDA_FOUND FALSE)
13
 
else()    
14
 
  set(AIDA_FOUND TRUE)
15
 
 
16
 
  execute_process(
17
 
    COMMAND ${AIDA_CONFIG_EXECUTABLE} --version 
18
 
    OUTPUT_VARIABLE AIDA_VERSION
19
 
    OUTPUT_STRIP_TRAILING_WHITESPACE)
20
 
 
21
 
  execute_process(
22
 
    COMMAND ${AIDA_CONFIG_EXECUTABLE} --include
23
 
    OUTPUT_VARIABLE AIDA_INCLUDE_DIR
24
 
    OUTPUT_STRIP_TRAILING_WHITESPACE)
25
 
    #remove -I prefix 
26
 
    string(REGEX REPLACE "-I" "" AIDA_INCLUDE_DIR "${AIDA_INCLUDE_DIR}")
27
 
 
28
 
  execute_process(
29
 
    COMMAND ${AIDA_CONFIG_EXECUTABLE} --libs
30
 
    OUTPUT_VARIABLE AIDA_LIBRARIES
31
 
    OUTPUT_STRIP_TRAILING_WHITESPACE)
32
 
 
33
 
  execute_process(
34
 
    COMMAND ${AIDA_CONFIG_EXECUTABLE} --implementation
35
 
    OUTPUT_VARIABLE AIDA_IMPLEMENTATION
36
 
    OUTPUT_STRIP_TRAILING_WHITESPACE)
37
 
 
38
 
  # Make variables changeble to the advanced user
39
 
  mark_as_advanced(AIDA_CONFIG_EXECUTABLE)
40
 
 
41
 
  if(NOT AIDA_FIND_QUIETLY)
42
 
    message(STATUS "Found AIDA ${AIDA_VERSION} implemented by ${AIDA_IMPLEMENTATION}")
43
 
  endif()
44
 
endif()
45