added config files.

This commit is contained in:
Ward Fisher 2012-11-19 16:33:21 +00:00
parent 29be541497
commit ac16c44ed9
3 changed files with 26 additions and 1 deletions

View File

@ -44,7 +44,7 @@ set (CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)
SET (CTEST_START_WITH_EMPTY_BINARY_DIRECTORY_ONCE 1)
ctest_start("Continuous")
while (${CTEST_ELAPSED_TIME})
while (${CTEST_ELAPSED_TIME} LESS 36000)
set (START_TIME ${CTEST_ELAPSED_TIME})
ctest_update(RETURN_VALUE count)

View 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
View 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/")