"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "nf_test/CMakeLists.txt" between
netcdf-fortran-4.4.4.tar.gz and netcdf-fortran-4.4.5.tar.gz

About: NetCDF (network Common Data Form) is a set of software libraries and machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data (Fortran library).

CMakeLists.txt  (netcdf-fortran-4.4.4):CMakeLists.txt  (netcdf-fortran-4.4.5)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8) CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
SET(CMAKE_VERBOSE_MAKEFILE ON) SET(CMAKE_VERBOSE_MAKEFILE OFF)
SET(CMAKE_BUILD_TYPE "RelWithDebInfo") SET(CMAKE_BUILD_TYPE "RelWithDebInfo")
SET(CMAKE_INCLUDE_CURRENT_DIR ON) SET(CMAKE_INCLUDE_CURRENT_DIR ON)
# Process these files with m4. # Process these files with m4.
SET(m4_SOURCES test_get test_put) SET(m4_SOURCES test_get test_put)
foreach (f ${m4_SOURCES}) foreach (f ${m4_SOURCES})
GEN_m4(${f}) GEN_m4(${f})
endforeach(f) endforeach(f)
IF (BUILD_F03) IF (BUILD_F03)
skipping to change at line 115 skipping to change at line 115
SET(check_PROGRAMS ${check_PROGRAMS} ${nc4_io_PROGRAMS}) SET(check_PROGRAMS ${check_PROGRAMS} ${nc4_io_PROGRAMS})
SET(TESTS ${TESTS} ${nc4_io_PROGRAMS}) SET(TESTS ${TESTS} ${nc4_io_PROGRAMS})
SET(tst_io_SOURCES tst_io.f90) SET(tst_io_SOURCES tst_io.f90)
ENDIF(BUILD_BENCHMARKS) ENDIF(BUILD_BENCHMARKS)
# Test parallel I/O. # Test parallel I/O.
IF (TEST_PARALLEL) IF (TEST_PARALLEL)
SET(check_PROGRAMS ${check_PROGRAMS} f90tst_parallel f90tst_parallel2 f90tst _parallel3 SET(check_PROGRAMS ${check_PROGRAMS} f90tst_parallel f90tst_parallel2 f90tst _parallel3
f90tst_nc4_par) f90tst_nc4_par)
build_bin_test(f90tst_parallel ".f90") build_bin_test(f90tst_parallel ".F90")
build_bin_test(f90tst_parallel2 ".f90") build_bin_test(f90tst_parallel2 ".F90")
build_bin_test(f90tst_parallel3 ".f90") build_bin_test(f90tst_parallel3 ".F90")
build_bin_test(f90tst_nc4_par ".f90") build_bin_test(f90tst_nc4_par ".F90")
#SET(f90tst_parallel_fill_SOURCES f90tst_parallel_fill.f90) #SET(f90tst_parallel_fill_SOURCES f90tst_parallel_fill.f90)
ENDIF (TEST_PARALLEL) ENDIF (TEST_PARALLEL)
# Test parallel I/O for F77. # Test parallel I/O for F77.
IF (TEST_PARALLEL) IF (TEST_PARALLEL)
SET(check_PROGRAMS ${check_PROGRAMS} ftst_parallel ftst_parallel_nasa) SET(check_PROGRAMS ${check_PROGRAMS} ftst_parallel ftst_parallel_nasa)
SET(SCRIPT_TESTS ${SCRIPT_TESTS} run_f77_par_test) SET(SCRIPT_TESTS ${SCRIPT_TESTS} run_f77_par_test)
# Add executables for f77_par_tst # Add executables for f77_par_tst
build_bin_test(ftst_parallel ".F") build_bin_test(ftst_parallel ".F")
build_bin_test(ftst_parallel_nasa ".F") build_bin_test(ftst_parallel_nasa ".F")
ENDIF (TEST_PARALLEL) ENDIF (TEST_PARALLEL)
IF(ENABLE_FILTER_TEST)
LIST(APPEND check_PROGRAMS ftst_filter)
LIST(APPEND CLEANFILES ftst_filter.nc)
SET(ftst_filter_SOURCES ftst_filter.F)
ENDIF(ENABLE_FILTER_TEST)
endif(USE_NETCDF4) endif(USE_NETCDF4)
# This is the fortran v2 test. It depends on the utilities being built # This is the fortran v2 test. It depends on the utilities being built
# to generate its input file. # to generate its input file.
IF (BUILD_V2) IF (BUILD_V2)
SET(check_PROGRAMS ${check_PROGRAMS} ftest) SET(check_PROGRAMS ${check_PROGRAMS} ftest)
SET(TESTS ${TESTS} ftest) SET(TESTS ${TESTS} ftest)
IF (BUILD_F03) IF (BUILD_F03)
SET(ftest_SOURCES ftest.F f03lib.c) SET(ftest_SOURCES ftest.F f03lib.c)
ELSE() ELSE()
skipping to change at line 163 skipping to change at line 169
FIND_LIBRARY(NETCDF_C_LIBRARY NAMES netcdf libnetcdf) FIND_LIBRARY(NETCDF_C_LIBRARY NAMES netcdf libnetcdf)
FIND_PATH(NETCDF_C_INCLUDE_DIR netcdf.h) FIND_PATH(NETCDF_C_INCLUDE_DIR netcdf.h)
IF(NOT NETCDF_C_LIBRARY) IF(NOT NETCDF_C_LIBRARY)
MESSAGE(FATAL_ERROR "Cannot find netCDF C library, needed for netCDF Fortran t ests.") MESSAGE(FATAL_ERROR "Cannot find netCDF C library, needed for netCDF Fortran t ests.")
ENDIF() ENDIF()
# Need a copy of ref_fills.nc for ftest # Need a copy of ref_fills.nc for ftest
execute_process(COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/ref_fills.nc execute_process(COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/ref_fills.nc
${CMAKE_CURRENT_BINARY_DIR}/fills.nc) ${CMAKE_CURRENT_BINARY_DIR}/fills.nc)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/fortran ${CMAKE_SOURCE_DIR}/libsrc INCLUDE_DIRECTORIES(BEFORE
${CMAKE_SOURCE_DIR} ${CMAKE_CPP_FLAGS} ${CMAKE_CURRENT_BINARY_DIR}
${NETCDF_C_INCLUDE_DIR} ${NC4F_BINARY_DIR}/fortran ${CMAKE_BINARY_DIR}/fortran
${NC4F_BINARY_DIR}/libsrc) ${CMAKE_BINARY_DIR}/libsrc
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/fortran
${CMAKE_SOURCE_DIR}/libsrc)
INCLUDE_DIRECTORIES(
${CMAKE_CPP_FLAGS}
${NETCDF_C_INCLUDE_DIR})
LINK_DIRECTORIES(${CMAKE_SOURCE_DIR}/fortran ${CMAKE_SOURCE_DIR}/libsrc LINK_DIRECTORIES(${CMAKE_SOURCE_DIR}/fortran ${CMAKE_SOURCE_DIR}/libsrc
${NC4F_BINARY_DIR}/fortran) ${NC4F_BINARY_DIR}/fortran)
# Create pre-compiled tests. # Create pre-compiled tests.
FOREACH(t ${TESTS}) FOREACH(t ${TESTS})
ADD_EXECUTABLE(${t} ${${t}_SOURCES}) ADD_EXECUTABLE(${t} ${${t}_SOURCES})
TARGET_LINK_LIBRARIES(${t} netcdff) TARGET_LINK_LIBRARIES(${t} netcdff)
ADD_TEST(${t} ${t}) ADD_TEST(${t} ${t})
ENDFOREACH() ENDFOREACH()
 End of changes. 4 change blocks. 
9 lines changed or deleted 23 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)