Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CEPCSW_OTE_development
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
yudian2002@sjtu.edu.cn
CEPCSW_OTE_development
Commits
cb75dbe4
Commit
cb75dbe4
authored
4 years ago
by
lintao@ihep.ac.cn
Browse files
Options
Downloads
Patches
Plain Diff
WIP: add FindHepMC.cmake.
parent
68d425f1
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 @
cb75dbe4
# - 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