Back to home page

sPhenix code displayed by LXR

 
 

    


Warning, /acts/cmake/FindPythia8.cmake is written in an unsupported language. File is not indexed.

0001 # Find the Pythia8 includes and libraries.
0002 #
0003 # This module defines the `Pythia8` imported target that encodes all
0004 # necessary information in its target properties.
0005 
0006 find_library(Pythia8_LIBRARY
0007   NAMES Pythia8 pythia8
0008   HINTS ENV PYTHIA8_DIR PYTHIA8
0009   PATHS /opt/pythia8 /usr/local
0010   DOC "The Pythia8 library")
0011 find_path(Pythia8_INCLUDE_DIR
0012   NAMES Pythia8/Pythia.h
0013   HINTS ENV PYTHIA8_DIR PYTHIA8
0014   PATHS /opt/pythia8 /usr/local
0015   DOC "The Pythia8 include directory")
0016 
0017 find_package_handle_standard_args(Pythia8
0018   REQUIRED_VARS Pythia8_LIBRARY Pythia8_INCLUDE_DIR)
0019 
0020 add_library(Pythia8 SHARED IMPORTED)
0021 set_property(TARGET Pythia8 PROPERTY IMPORTED_LOCATION ${Pythia8_LIBRARY})
0022 set_property(TARGET Pythia8 PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${Pythia8_INCLUDE_DIR})
0023 
0024 mark_as_advanced(Pythia8_FOUND Pythia8_INCLUDE_DIR Pythia8_LIBRARY)