mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
16 lines
449 B
CMake
16 lines
449 B
CMake
# Cmake Package & Configuration file support.
|
|
# Based on code from 'Mastering Cmake'
|
|
|
|
# Compute installation prefix relative to this file.
|
|
get_filename_component (_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
get_filename_component (_prefix "${_dir}/../.." ABSOLUTE)
|
|
|
|
# Import the targets
|
|
include ("${_prefix}/share/cmake/netcdf-targets.cmake")
|
|
|
|
# Report other information
|
|
set (netcdf_INCLUDE_DIRS "${_prefix}/include/")
|
|
|
|
set (netcdf_LIBRARIES "netcdf")
|
|
|