Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CEPCSW
Manage
Activity
Members
Labels
Plan
Issues
6
Issue boards
Milestones
Wiki
Code
Merge requests
8
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
CEPCSW
Commits
aba65ce0
Unverified
Commit
aba65ce0
authored
4 years ago
by
lintao@ihep.ac.cn
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #147 from mirguest/master
WIP: add FindHepMC.cmake.
parents
68d425f1
cb75dbe4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/FindHepMC.cmake
+36
-0
36 additions, 0 deletions
cmake/FindHepMC.cmake
with
36 additions
and
0 deletions
cmake/FindHepMC.cmake
0 → 100644
+
36
−
0
View file @
aba65ce0
# - Locate HepMC library
# Defines:
#
# HEPMC_FOUND
# HEPMC_INCLUDE_DIR
# HEPMC_INCLUDE_DIRS (not cached)
# HEPMC_<component>_LIBRARY
# HEPMC_LIBRARIES (not cached)
# HEPMC_LIBRARY_DIRS (not cached)
find_path
(
HEPMC_INCLUDE_DIR HepMC/GenEvent.h
HINTS
${
HEPMC_ROOT_DIR
}
/include $ENV{HEPMC_ROOT_DIR}/include
)
set
(
HEPMC_INCLUDE_DIRS
${
HEPMC_INCLUDE_DIR
}
)
if
(
NOT HepMC_FIND_COMPONENTS
)
set
(
HepMC_FIND_COMPONENTS HepMC
)
endif
()
foreach
(
component
${
HepMC_FIND_COMPONENTS
}
)
find_library
(
HEPMC_
${
component
}
_LIBRARY
NAMES HepMC
${
component
}
${
component
}
HINTS
${
HEPMC_ROOT_DIR
}
/lib $ENV{HEPMC_ROOT_DIR}/lib
)
mark_as_advanced
(
HEPMC_
${
component
}
_LIBRARY
)
list
(
APPEND HEPMC_LIBRARIES
${
HEPMC_
${
component
}
_LIBRARY
}
)
get_filename_component
(
_comp_dir
${
HEPMC_
${
component
}
_LIBRARY
}
PATH
)
list
(
APPEND HEPMC_LIBRARY_DIRS
${
_comp_dir
}
)
endforeach
()
if
(
HEPMC_LIBRARY_DIRS
)
list
(
REMOVE_DUPLICATES HEPMC_LIBRARY_DIRS
)
endif
()
# handle the QUIETLY and REQUIRED arguments and set HEPMC_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE
(
FindPackageHandleStandardArgs
)
FIND_PACKAGE_HANDLE_STANDARD_ARGS
(
HepMC DEFAULT_MSG HEPMC_INCLUDE_DIR HEPMC_LIBRARIES
)
mark_as_advanced
(
HEPMC_FOUND HEPMC_INCLUDE_DIR
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment