mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-05 16:20:10 +08:00
added config files.
This commit is contained in:
parent
29be541497
commit
ac16c44ed9
@ -44,7 +44,7 @@ set (CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)
|
|||||||
SET (CTEST_START_WITH_EMPTY_BINARY_DIRECTORY_ONCE 1)
|
SET (CTEST_START_WITH_EMPTY_BINARY_DIRECTORY_ONCE 1)
|
||||||
ctest_start("Continuous")
|
ctest_start("Continuous")
|
||||||
|
|
||||||
while (${CTEST_ELAPSED_TIME})
|
while (${CTEST_ELAPSED_TIME} LESS 36000)
|
||||||
set (START_TIME ${CTEST_ELAPSED_TIME})
|
set (START_TIME ${CTEST_ELAPSED_TIME})
|
||||||
|
|
||||||
ctest_update(RETURN_VALUE count)
|
ctest_update(RETURN_VALUE count)
|
||||||
|
10
netcdf-config-version.cmake.in
Normal file
10
netcdf-config-version.cmake.in
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# Cmake Package & Configuration file support.
|
||||||
|
# Based on code from 'Mastering Cmake'
|
||||||
|
|
||||||
|
set (PACKAGE_VERSION "@version@")
|
||||||
|
if (NOT "${PACKAGE_FIND_VERSION}" VERSION_GREATER "@version@")
|
||||||
|
set (PACKAGE_VERSION_COMPATIBLE 1) # Compatible with older.
|
||||||
|
if ("${PACKAGE_FIND_VERSION}" VERSION_EQUAL "@version@")
|
||||||
|
set(PACKAGE_VERSION_EXACT 1) # exact match for this version.
|
||||||
|
endif()
|
||||||
|
endif()
|
15
netcdf-config.cmake.in
Normal file
15
netcdf-config.cmake.in
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# 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/")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user