Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ADIOS2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
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
Code review analytics
Issue 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
Podhorszki, Norbert
ADIOS2
Commits
4f39beaf
Commit
4f39beaf
authored
7 years ago
by
Atkins, Charles Vernon
Browse files
Options
Downloads
Patches
Plain Diff
Add ZFP dependency support
parent
e2de0610
No related branches found
No related tags found
1 merge request
!81
Add zmq and zfp depends
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/FindZFP.cmake
+59
-0
59 additions, 0 deletions
cmake/FindZFP.cmake
with
59 additions
and
0 deletions
cmake/FindZFP.cmake
0 → 100644
+
59
−
0
View file @
4f39beaf
#------------------------------------------------------------------------------#
# Distributed under the OSI-approved Apache License, Version 2.0. See
# accompanying file Copyright.txt for details.
#------------------------------------------------------------------------------#
#
# FindZFP
# -----------
#
# Try to find the zfp library
#
# This module defines the following variables:
#
# ZFP_FOUND - System has zfp
# ZFP_INCLUDE_DIRS - The zfp include directory
# ZFP_LIBRARIES - Link these to use zfp
#
# and the following imported targets:
# zfp::zfp - The zfp compression library target
#
# You can also set the following variable to help guide the search:
# ZFP_ROOT_DIR - The install prefix for zfp containing the
# include and lib folders
# Note: this can be set as a CMake variable or an
# environment variable. If specified as a CMake
# variable, it will override any setting specified
# as an environment variable.
if
(
NOT ZFP_FOUND
)
if
((
NOT ZFP_ROOT_DIR
)
AND
(
NOT
(
ENV{ZFP_ROOT_DIR} STREQUAL
""
)))
set
(
ZFP_ROOT_DIR
"$ENV{ZFP_ROOT_DIR}"
)
endif
()
if
(
ZFP_ROOT_DIR
)
set
(
ZFP_INCLUDE_OPTS HINTS
${
ZFP_ROOT_DIR
}
/include NO_DEFAULT_PATHS
)
set
(
ZFP_LIBRARY_OPTS
HINTS
${
ZFP_ROOT_DIR
}
/lib
${
ZFP_ROOT_DIR
}
/lib64
NO_DEFAULT_PATHS
)
endif
()
find_path
(
ZFP_INCLUDE_DIR zfp.h
${
ZFP_INCLUDE_OPTS
}
)
find_library
(
ZFP_LIBRARY zfp
${
ZFP_LIBRARY_OPTS
}
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
ZFP
FOUND_VAR ZFP_FOUND
REQUIRED_VARS ZFP_LIBRARY ZFP_INCLUDE_DIR
)
if
(
ZFP_FOUND
)
set
(
ZFP_INCLUDE_DIRS
${
ZFP_INCLUDE_DIR
}
)
set
(
ZFP_LIBRARIES
${
ZFP_LIBRARY
}
)
if
(
ZFP_FOUND AND NOT TARGET zfp::zfp
)
add_library
(
zfp::zfp UNKNOWN IMPORTED
)
set_target_properties
(
zfp::zfp PROPERTIES
IMPORTED_LOCATION
"
${
ZFP_LIBRARY
}
"
INTERFACE_INCLUDE_DIRECTORIES
"
${
ZFP_INCLUDE_DIR
}
"
)
endif
()
endif
()
endif
()
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