"Fossies" - the Fresh Open Source Software Archive

Member "netcdf-fortran-4.4.5/libsrc/CMakeLists.txt" (31 Jan 2019, 1690 Bytes) of package /linux/misc/netcdf-fortran-4.4.5.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
    2 
    3 # Tell make to install these as a header file.
    4 SET(include_HEADERS nfconfig.inc)
    5 SET(CMAKE_INCLUDE_CURRENT_DIR ON)
    6 
    7 # The (temporary) library we are building.
    8 SET(ncfortran_LIBRARY_SOURCES
    9   fort-attio.c fort-control.c fort-dim.c
   10   fort-genatt.c fort-geninq.c fort-genvar.c fort-lib.c fort-misc.c
   11   fort-v2compat.c fort-vario.c fort-var1io.c fort-varaio.c fort-varmio.c
   12   fort-varsio.c cfortran.h fort-lib.h ncfortran.h)
   13 # Is the user building netCDF-4?
   14 #IF(USE_NETCDF4)
   15 #  SET(ncfortran_LIBRARY_SOURCES ${ncfortran_LIBRARY_SOURCES} fort-nc4.c)
   16 #ENDIF(USE_NETCDF4)
   17 
   18 # The F77 API man page.
   19 SET(man_MANS netcdf_f77.3)
   20 
   21 # This rule generates the F77 manpage.
   22 SET(ARGS_MANPAGE "-DAPI=FORTRAN")
   23 IF (USE_NETCDF4)
   24   SET(ARGS_MANPAGE ${ARGS_MANPAGE} "-DNETCDF4=TRUE")
   25 ENDIF(USE_NETCDF4)
   26 IF(BUILD_DAP)
   27   SET(ARGS_MANPAGE ${ARGS_MANPAGE} "-DDAP=TRUE")
   28 ENDIF(BUILD_DAP)
   29 IF(BUILD_PARALLEL)
   30   SET(ARGS_MANPAGE ${ARGS_MANPAGE} "-DPARALLEL_IO=TRUE")
   31 ENDIF(BUILD_PARALLEL)
   32 
   33 # TODO: Figure out the cmake syntax for this
   34 # netcdf_f77.3: $(top_srcdir)/docs/netcdf.m4
   35 #	m4 $(M4FLAGS) $(ARGS_MANPAGE) $? >$@ || rm $@
   36 
   37 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR} ${CMAKE_CPP_FLAGS})
   38 
   39 ADD_LIBRARY(ncfortran ${ncfortran_LIBRARY_SOURCES})
   40 TARGET_LINK_LIBRARIES(ncfortran ${NETCDF_C_LIBRARY} ${EXTRA_DEPS})
   41 # The nfconfig.in file is turned into nfconfig.inc by the configure
   42 # script. The man page is generated on the developers machine for the
   43 # dist.
   44 SET(EXTRA_DIST nfconfig.in nfconfig.inc ${man_MANS} netcdf_f.h)# These files need to be cleaned up my make.
   45 
   46 # These files need to be cleaned up my make.
   47 SET(CLEANFILES nfconfig1.inc netcdf.inc)
   48 SET(DISTCLEANFILES nfconfig.inc )