Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cmake files in the examples related to HepMC and event generators #45

Draft
wants to merge 63 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
eebf54c
Add LHAPDF.cmake
Apr 9, 2022
e5eda43
OK
Apr 9, 2022
12d2955
OK
Apr 9, 2022
5b99dcf
OK
Apr 9, 2022
c8763a7
OK
Apr 9, 2022
1316811
OK
Apr 9, 2022
4ad10f0
OK
Apr 9, 2022
2a191ae
OK
Apr 9, 2022
924e0bc
OK
Apr 9, 2022
e0c921e
OK
Apr 9, 2022
d434f04
Substr
Apr 10, 2022
bb5678d
More examples
Apr 10, 2022
83ab3e2
More examples
Apr 10, 2022
d8d49f9
More examples
Apr 10, 2022
5e45145
More examples
Apr 10, 2022
18f71b3
More examples
Apr 10, 2022
3944613
More examples
Apr 10, 2022
52cfeb5
More examples
Apr 10, 2022
0386efc
Added tests explicitly
Apr 30, 2022
c47cbc6
First try
May 3, 2022
a05c2bb
Try 2
May 3, 2022
b104575
Try 3
May 3, 2022
e5d4e51
Try 3
May 3, 2022
71f7d75
Try 5
May 3, 2022
0dbe950
Try 6
May 3, 2022
f448eab
Try 6
May 3, 2022
5a76a8e
Try 7
May 3, 2022
cc334f0
OK
May 3, 2022
6d72c6c
OK
May 3, 2022
4109a5a
Try 9
May 3, 2022
413beff
Try 10
May 3, 2022
79b574d
Try 10
May 3, 2022
a897d6a
Try 11
May 3, 2022
c14c462
Try 12
May 3, 2022
05b9553
Try 13
May 3, 2022
b677165
Try 14
May 3, 2022
60e1126
Download pythia6
May 4, 2022
9ca115f
Update CMakeLists.txt.pythia6
andriish May 4, 2022
728a5b0
Conditions
May 4, 2022
64b5f3a
Conditions
May 4, 2022
071fc14
OK
May 4, 2022
6435d30
OK
May 4, 2022
5dc3800
OK
May 4, 2022
2699cf2
OK
May 4, 2022
a902012
OK
May 4, 2022
3a59798
Add
May 4, 2022
52358e1
Assure HepMC2
May 4, 2022
118de28
OK
May 4, 2022
87246d0
OK
May 6, 2022
f04ba43
Added LHAPDF
May 6, 2022
9c98a84
OK
May 6, 2022
7ff0f17
OK
May 6, 2022
a328a71
Added modified pythia6
May 6, 2022
c9fa1ee
OK
May 6, 2022
769d7a3
Merge remote-tracking branch 'origin/pythiabuildin' into LHAPDF
May 6, 2022
ad7e6c3
Simplify
May 6, 2022
9764f7d
Merge branch 'master' into LHAPDF
Jun 10, 2022
2447ebe
Merge branch 'Geant4:master' into LHAPDF
andriish Nov 29, 2023
536bf46
Update HepMCG4PythiaInterface.cc
andriish Nov 29, 2023
1f51f59
Update HepMCG4PythiaInterface.cc
andriish Nov 29, 2023
bba07c8
Merge remote-tracking branch 'origin/master' into LHAPDF
Jan 17, 2024
9a78d2a
Remove CI as there is a separate MR
Mar 13, 2024
193aa05
Fix a typo in FindPythia6
Mar 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
OK
  • Loading branch information
Alois Kabelschacht committed Apr 9, 2022
commit 5b99dcf31b22fc06ecf1c676147cc6fa03193a7d
61 changes: 44 additions & 17 deletions cmake/Modules/FindLHAPDF.cmake
Original file line number Diff line number Diff line change
@@ -1,29 +1,56 @@
# - Locate LHAPDF library
# in a directory defined via LHAPDF_ROOT_DIR or LHAPDF_DIR environment variable
# - Try to find LHAPDF
# Defines:
#
# LHAPDF_FOUND
# LHAPDF_INCLUDE_DIR
# LHAPDF_INCLUDE_DIRS (not cached)
# LHAPDF_LIBRARIES
# LHAPDF_LIBRARY
# LHAPDF_LIBRARIES (not cached)
# LHAPDF_LIBRARY_DIRS (not cached)

find_path(LHAPDF_INCLUDE_DIR LHAPDF.h
HINTS $ENV{LHAPDF_ROOT_DIR}/include ${LHAPDF_ROOT_DIR}/include
$ENV{LHAPDF_DIR}/include ${LHAPDF_DIR}/include)
if (LHAPDF_ROOT_DIR OR LHAPDF_DIR OR (DEFINED ENV{LHAPDF_ROOT_DIR}) OR (DEFINED ENV{LHAPDF_DIR}) )
set(LHAPDF_SEARCH_DIRS "" CACHE STRING "" FORCE)
if (LHAPDF_ROOT_DIR)
list (APPEND LHAPDF_SEARCH_DIRS "${LHAPDF_ROOT_DIR}" )
endif()
if (LHAPDF_DIR)
list (APPEND LHAPDF_SEARCH_DIRS "${LHAPDF_DIR}" )
endif()
if (DEFINED EVN{LHAPDF_ROOT_DIR})
list (APPEND LHAPDF_SEARCH_DIRS "$ENV{LHAPDF_ROOT_DIR}" )
endif()
if (DEFINED ENV{LHAPDF_DIR})
list (APPEND LHAPDF_SEARCH_DIRS "ENV{LHAPDF_DIR}" )
endif()
endif()
if (LHAPDF_SEARCH_DIRS)
find_path(LHAPDF_INCLUDE_DIR LHAPDF/LHAPDF.h PATHS ${LHAPDF_SEARCH_DIRS} PATH_SUFFIXES include NO_DEFAULT_PATH)
find_library(LHAPDF_LIBRARY NAMES LHAPDF PATHS ${LHAPDF_SEARCH_DIRS} PATH_SUFFIXES lib lib64 NO_DEFAULT_PATH)
else()
find_path(LHAPDF_INCLUDE_DIR LHAPDF/LHAPDF.h PATH_SUFFIXES include)
find_library(LHAPDF_LIBRARY NAMES LHAPDF PATHS_SUFFIXES lib lib64)
endif()
set(LHAPDF_VERSION 0.0.0)
if (LHAPDF_INCLUDE_DIR)
if (EXISTS ${LHAPDF_INCLUDE_DIR}/LHAPDF/Version.h)
file(STRINGS ${LHAPDF_INCLUDE_DIR}/LHAPDF/Version.h LHAPDF_VERSION_STRING_CONTENT REGEX "^#define[ ]+LHAPDF_VERSION[ ]+\"" )
if (LHAPDF_VERSION_STRING_CONTENT)
string(REGEX MATCH "[1234567890\.]+[a-zA-Z]*" LHAPDF_VERSION ${LHAPDF_VERSION_STRING_CONTENT})
endif()
endif()
endif()

find_library(LHAPDF_LIBRARIES NAMES LHAPDF
HINTS $ENV{LHAPDF_ROOT_DIR}/lib ${LHAPDF_ROOT_DIR}/lib
HINTS $ENV{LHAPDF_DIR}/lib ${LHAPDF_DIR}/lib
HINTS $ENV{LHAPDF_ROOT_DIR}/lib64 ${LHAPDF_ROOT_DIR}/lib64
HINTS $ENV{LHAPDF_DIR}/lib64 ${LHAPDF_DIR}/lib64
)


set(LHAPDF_INCLUDE_DIRS ${LHAPDF_INCLUDE_DIR})
mark_as_advanced(LHAPDF_INCLUDE_DIR LHAPDF_LIBRARY)

# handle the QUIETLY and REQUIRED arguments and set LHAPDF_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LHAPDF DEFAULT_MSG LHAPDF_INCLUDE_DIR LHAPDF_LIBRARIES)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LHAPDF DEFAULT_MSG LHAPDF_INCLUDE_DIR LHAPDF_LIBRARY)

set(LHAPDF_LIBRARIES ${LHAPDF_LIBRARY})
get_filename_component(LHAPDF_LIBRARY_DIRS ${LHAPDF_LIBRARY} PATH)

set(LHAPDF_INCLUDE_DIRS ${LHAPDF_INCLUDE_DIR})

mark_as_advanced(LHAPDF_FOUND LHAPDF_INCLUDE_DIR LHAPDF_LIBRARIES)
mark_as_advanced(LHAPDF_FOUND)