Blame view

cmake/modules/FindNetCDF.cmake 497 Bytes
4243d674   Benjamin Renard   First commit
1
2
FIND_PATH(NETCDFINCLUDE_DIR netcdf.h
  HINTS
4cedf03b   Benjamin Renard   Update script use...
3
    ${USERLOCAL_ROOT}/include
4243d674   Benjamin Renard   First commit
4
5
6
7
8
9
)
mark_as_advanced(NETCDFINCLUDE_DIR)

find_library(NETCDFLIBRARY 
    NAMES netcdf
    HINTS
4cedf03b   Benjamin Renard   Update script use...
10
11
        ${USERLOCAL_ROOT}/lib
    NO_DEFAULT_PATH
4243d674   Benjamin Renard   First commit
12
13
14
15
16
17
18
19
20
21
)
mark_as_advanced(NETCDFLIBRARY)

include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(NetCdf DEFAULT_MSG NETCDFLIBRARY NETCDFINCLUDE_DIR)

if(NETCDF_FOUND)
    set(NETCDFINCLUDE_DIRS ${NETCDFINCLUDE_DIR})
    set(NETCDFLIBRARIES ${NETCDFLIBRARY})
endif()