File: BuildNETCDF.cmake

package info (click to toggle)
libminc 2.4.07-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,288 kB
  • sloc: ansic: 57,268; cpp: 3,654; sh: 100; makefile: 23; ruby: 18
file content (18 lines) | stat: -rw-r--r-- 660 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

macro(build_netcdf install_prefix)

ExternalProject_Add(NETCDF 
  SOURCE_DIR NETCDF
  URL "ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.0.1.tar.gz"
  URL_MD5 "a251453c5477599f050fa4e593295186"
  BUILD_IN_SOURCE 1
  INSTALL_DIR "${install_prefix}"
  BUILD_COMMAND   make 
  INSTALL_COMMAND make install 
  CONFIGURE_COMMAND ./configure --prefix=${install_prefix} --with-pic --disable-netcdf4 --disable-hdf4 --disable-dap --disable-shared --disable-cxx --disable-f77 --disable-f90 --disable-examples --enable-v2 --disable-docs
)

SET(NETCDF_LIBRARY ${install_prefix}/lib/libnetcdf.a )
SET(NETCDF_INCLUDE_DIR ${install_prefix}/include )

endmacro(build_netcdf)