-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# (C) Copyright 2011- ECMWF. | ||
# | ||
# This software is licensed under the terms of the Apache Licence Version 2.0 | ||
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. | ||
# In applying this licence, ECMWF does not waive the privileges and immunities | ||
# granted to it by virtue of its status as an intergovernmental organisation | ||
# nor does it submit to any jurisdiction. | ||
|
||
# - Try to find AEC (Adaptive Entropy Coding library) | ||
# See https://www.dkrz.de/redmine/projects/aec/wiki | ||
|
||
# Once done this will define | ||
# AEC_FOUND - System has AEC | ||
# AEC_INCLUDE_DIRS - The AEC include directories | ||
# AEC_LIBRARIES - The libraries needed to use AEC | ||
# | ||
# The following paths will be searched with priority if set in CMake or env | ||
# | ||
# AEC_DIR - prefix path of the AEC installation | ||
# AEC_PATH - prefix path of the AEC installation | ||
# LIBAEC_DIR | ||
# libaec_DIR | ||
# LIBAEC_PATH | ||
# libaec_PATH | ||
# libaec_ROOT | ||
|
||
find_path( AEC_INCLUDE_DIR libaec.h | ||
PATHS ${AEC_DIR} ${AEC_PATH} ${LIBAEC_DIR} ${libaec_DIR} ${LIBAEC_PATH} ${libaec_PATH} ${libaec_ROOT} ENV AEC_DIR ENV AEC_PATH ENV LIBAEC_DIR ENV libaec_DIR ENV LIBAEC_PATH ENV libaec_PATH ENV libaec_ROOT | ||
PATH_SUFFIXES include include/aec NO_DEFAULT_PATH ) | ||
find_path( AEC_INCLUDE_DIR libaec.h PATH_SUFFIXES include include/aec ) | ||
|
||
find_library( AEC_LIBRARY NAMES aec | ||
PATHS ${AEC_DIR} ${AEC_PATH} ${LIBAEC_DIR} ${libaec_DIR} ${LIBAEC_PATH} ${libaec_PATH} ${libaec_ROOT} ENV AEC_DIR ENV AEC_PATH ENV LIBAEC_DIR ENV libaec_DIR ENV LIBAEC_PATH ENV libaec_PATH ENV libaec_ROOT | ||
PATH_SUFFIXES lib lib64 lib/aec lib64/aec NO_DEFAULT_PATH ) | ||
find_library( AEC_LIBRARY NAMES aec PATH_SUFFIXES lib lib64 lib/aec lib64/aec ) | ||
|
||
set( AEC_LIBRARIES ${AEC_LIBRARY} ) | ||
set( AEC_INCLUDE_DIRS ${AEC_INCLUDE_DIR} ) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
|
||
find_package_handle_standard_args(AEC DEFAULT_MSG AEC_LIBRARY AEC_INCLUDE_DIR) | ||
|
||
mark_as_advanced(AEC_INCLUDE_DIR AEC_LIBRARY ) |